Hello, I am working on some Python code that updates a Hosted Feature Layer inside of ArcGIS Pro. However, performance is extremely slow. There are over 700k records in the feature class, but performance was acceptable when working with a FGDB. Accessing the hosted layer takes hours to run each step (e. g. and update cursor and select by location, see below)
Is this expected for a hosted feature layer? I'm using ArcGIS Pro 2.9.10 and Enterprise 10.9.1.
with arcpy.da.UpdateCursor('featureClassName', ['fieldName']) as cursor:
for row in cursor:
if row[0] == 'N':
row[0] = None
cursor.updateRow(row)
arcpy.management.SelectLayerByLocation('featureClassName', 'INTERSECT', 'fieldName', None, 'NEW_SELECTION', 'INVERT')
If more details are needed please let me know. Any help would be appreciated.
Thanks,
Steve