Automate rebuild a spatial index of feature class

372
3
Jump to solution
10-18-2022 09:37 PM
ManishGohil
New Contributor III

To reduce unusual Memory and CPU consumption we rebuild a spatial index  of feature class by following steps in below URL.
Is there any way to automate these steps through any tool or services or anything?

URLhttps://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/overview/modifying-a-spatial-index.h...

0 Kudos
1 Solution

Accepted Solutions
RhettZufelt
MVP Frequent Contributor

You can do it with Rebuild Indexes in python and run as a scheduled task.

R_

View solution in original post

0 Kudos
3 Replies
RhettZufelt
MVP Frequent Contributor

You can do it with Rebuild Indexes in python and run as a scheduled task.

R_

0 Kudos
ManishGohil
New Contributor III

Thank you for your quick response. Does it lock tables? 

0 Kudos
RhettZufelt
MVP Frequent Contributor

Not sure, you would have to test.  I schedule it to run at night so wouldn't know.

I don't think so as I just tried and it let me edit/create/delete features while arcpy is rebuilding the index's.

R_