Since upgrading to ArcGIS 10 (ArcInfo license level, SP1), I've experienced much slower performance with the Delete Rows GP tool (Data Management Tools > Tables > Delete Rows).
I run a process a few times per week that generates a table averaging approximately 100 rows. For each table, I may need to do some post-processing & manually delete a handful of rows. Yet, I don't want to open an edit session each time. My solution has been to select the few rows I don't need, then run the Delete Rows tool, which deletes only the selections. This worked lightning fast in 9.3.1, but takes upwards of a half minute or so in version 10. That may not sound like much, but it's frustrating that something that worked so well in the last release is now bottle-necking my work flow. Is this a flaw in the tool, or do I need to adjust something to improve the tool's performance?
Chris Morneau
Los Angeles County
Dept of Regional Planning
Can't verify that behavior in v10, but as a work around:
1. Copy the rows you want to keep to a new table
2. Use an update cursor (the .DeleteRow method) to delete the rows
I haven't touched this thread in a while, so I don't know if others have discovered anything new during the interim. I'm now using version 10.2.2, & Delete Rows is still slow when I use it as a stand-alone tool.
Hi Chris,
I have made the same observation with ArcGIS 10.4.1. But also when I use the GP tool in ModelBuilder, there is no change in performance.
I have done some checks and I think I know the answer.
I think most people are using this command to truncate the layer (delete all records).
In 10.0 the GP would just delete row by row keeping the spatial index.
In 10.1 the GP delete the spatial index, delete the row and rebuild the index. If you delete all records it is much faster.
If you delete just a few records it takes time to rebuild the index for the remaining records.
That is what I found checking trace file of enterprise geodatabase, I this it is the same for FGDB.