Hello,
I would like to run simple maintenance arcpy scripts on feature classes after a load. Without reading those feature classes.
Example of scripts: attribute index, spatial index, extent calculation:
arcpy.AddIndex_management(in_table="C:/Users/xxx/Documents/ArcGIS/Default.gdb/tablename", fields="Name", index_name="name_1", unique="NON_UNIQUE", ascending="NON_ASCENDING")
arcpy.RecalculateFeatureClassExtent_management(in_features="C:/Users/xxx/Documents/ArcGIS/Default.gdb/tablename")
For both file geodatabase feature classes and Enterprise Geodatabase.
How do I achieve this with either a shutdown python script or PythonCaller / Creator?
Thanks