Under SDE 9.2 my deletefeatures took only a few seconds to run. When I upgraded to 64-bit SDE 9.3.1 (SQL 2008) it started taking 20 minutes or more. What I didn't realize is that my ArcGIS client was still at 9.2. Once I upgraded to ArcGIS 9.3.1 matching ArcSDE it went back to normal.
Hello,I'd suggest running a level 12 trace and include waits and binds during your next test. The formatted trace results (tkprof) will tell us if the problem is in the database or on the client. Anthony
Just curious.I frequently run deletefeature tool, either manually or in scripts, to remove all features in FCs on both Oracle based GDB (hp-ux/Oracle 10.2.0.3/SDE 9.3.1) and SQL Server based GDB (SQL Server 2008 R2/SDE 10.0). The features in FCs range from a few to a few millions. The process time never passed 30 seconds mark. Actually I just tried to delete 2.3 millions features from a FC on a SQL Server GDB. It was 1 second. And I did it from a client computer.Why did it take you so long to do the same thing? Are you sure the time difference is caused by the deletefeatures process?
C:\>asc2sde -o init -l trunc_ex,shape -C trunc_ex.ctl -# 70000 -vI 30000 ASCII to ArcSDE 9.3 Loader Utility Thu Jan 13 09:37:56 2011 ------------------------------------------------------------------------ 30000 source records read... 60000 source records read... 70000 source records read... Results: Records read: 70000 Rows created: 70000 Insert time: 26.47 secs (2644.60 TPS) Elapsed time: 34.42 secs C:\>sdesql ArcSDE 9.3 SQL Query Tool Thu Jan 13 09:38:37 2011 ------------------------------------------------------------------------ 1> delete from trunc_ex where 1=1; Execution complete in 29.94 secs 1> quit 1 command completed in 00:00:48.4 C:\>asc2sde -o init -l trunc_ex,shape -C trunc_ex.ctl -# 70000 -vI 30000 ASCII to ArcSDE 9.3 Loader Utility Thu Jan 13 09:39:31 2011 ------------------------------------------------------------------------ 30000 source records read... 60000 source records read... 70000 source records read... Results: Records read: 70000 Rows created: 70000 Insert time: 24.73 secs (2830.11 TPS) Elapsed time: 31.86 secs C:\>sdesql ArcSDE 9.3 SQL Query Tool Thu Jan 13 09:40:07 2011 ------------------------------------------------------------------------ 1> truncate table trunc_ex; Execution complete in 688.00 ms 1> exit 1 command completed in 00:00:24.8
C:\>asc2sde -o create -l trunc_ex,shape -k ST_GEOMETRY -g 2 -C trunc_ex.ctl -v ASCII to ArcSDE 9.3 Loader Utility Thu Jan 13 09:30:33 2011 ------------------------------------------------------------------------ Creating table 'trunc_ex'... Array-insert mode enabled... Loading data: 100 source records read... Changing layer to NORMAL I/O mode... Results: Records read: 100 Rows created: 100 Insert time: 46.00 ms (2173.91 TPS) Elapsed time: 672.00 ms C:\>sdesql ArcSDE 9.3 SQL Query Tool Thu Jan 13 09:30:44 2011 ------------------------------------------------------------------------ 1> truncate table trunc_ex; Execution complete in 172.00 ms 1> quit 1 command completed in 00:00:16.4 C:\>asc2sde -o append -l trunc_ex,shape -C trunc_ex.ctl -v ASCII to ArcSDE 9.3 Loader Utility Thu Jan 13 09:31:18 2011 ------------------------------------------------------------------------ Array-insert mode enabled... Loading data: 100 source records read... Results: Records read: 100 Rows created: 100 Insert time: 454.00 ms (220.26 TPS) Elapsed time: 735.00 ms C:\>sdesql ArcSDE 9.3 SQL Query Tool Thu Jan 13 09:31:21 2011 ------------------------------------------------------------------------ 1> select min(objectid),max(objectid) from trunc_ex; 1 MIN(OBJECTID): 101.0000000000 MAX(OBJECTID): 200.0000000000 1 row found in 15.00 ms 1> truncate table trunc_ex; Execution complete in 94.00 ms 1> quit 2 command completed in 00:00:32.6 C:\>asc2sde -o init -l trunc_ex,shape -C trunc_ex.ctl -v ASCII to ArcSDE 9.3 Loader Utility Thu Jan 13 09:33:15 2011 ------------------------------------------------------------------------ Truncating table 'trunc_ex'... Changing layer to LOAD_ONLY I/O mode... Array-insert mode enabled... Loading data: 100 source records read... Changing layer to NORMAL I/O mode... Results: Records read: 100 Rows created: 100 Insert time: 63.00 ms (1587.30 TPS) Elapsed time: 610.00 ms C:\>sdesql ArcSDE 9.3 SQL Query Tool Thu Jan 13 09:33:22 2011 ------------------------------------------------------------------------ 1> select min(objectid),max(objectid) from trunc_ex; 1 MIN(OBJECTID): 1.0000000000 MAX(OBJECTID): 100.0000000000 1 row found in 0 secs
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.