<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic DeleteFeatures Behavior Changed in ArcSDE 10.1  / SQL Server 2012 in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/deletefeatures-behavior-changed-in-arcsde-10-1-sql/m-p/122733#M7080</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: Calibri; font-size: 11pt;"&gt;DeleteFeatures no longer deletes all records at one time which it's supose to do when the input is a feature class or table!&amp;nbsp; We upgraded from ArcGIS 10.0 / SQL 2008 to ArcGIS 10.1 / SQL 2012 so I don't know which caused the change.&amp;nbsp; In 10.0 this was carried out all at once in like a truncate on the database side, but after upgrading it's taking forever now.&amp;nbsp; Through SQL Profiler I can see that the records are being deleted in batches of about 150 records at a time, so what use to take about 2 to 3 seconds now takes over 30 minutes for a feature class containing a 1,000,000 records.&amp;nbsp; Is there any fix for this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11pt;"&gt;BTW, this is similar to a bug introduced back in 9.3.1&lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11pt;"&gt;&lt;A _jive_internal="true" href="https://community.esri.com/message/16613?sr=search&amp;amp;searchId=27c4082a-5048-443b-ab3e-d38219e3b633&amp;amp;searchIndex=4#16613"&gt;https://community.esri.com/message/16613?sr=search&amp;amp;searchId=27c4082a-5048-443b-ab3e-d38219e3b633&amp;amp;searchIndex=4#16613&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11pt;"&gt;-- sample from SQL profiler --&lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11pt;"&gt;declare @p1 int&lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11pt;"&gt;set @p1=8003&lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11pt;"&gt;exec sp_prepexec @p1&lt;BR /&gt;output,NULL,N'DELETE FROM GEOLIB_STAGE.DBO.TRANS WHERE OBJECTID IN&lt;BR /&gt;(8678,149031,781870,529051,850941,146097,548880,540263,435454,354365,529268,582084,247165,795180,559851,414179,446673,660244,490564,517760,142856,241123,695475,471813,307298,412080,719441,332785,592142,194167,188071,810130,824122,400725,570745,21179,375132,466956,743512,188859,661765,372015,794739,91259,138852,136984,883971,444122,485764,713000,134614,347483,503788,44012,840195,132928,875866,156734,523141,402599,752233,603552,330094,513428,53304,131004,803002,129594,498844,667558,90466,357945,633048,672060,479776,608211,820966,126915,265315,440638,677618,464150,236562,34384,749617,733983,658454,506931,764976,301637,532466,872429,19165,7489,252175,120581,409177,543996,163044,438198,534060,262530,872814,185194,325948,81350,576719,110589,181631,55689,398198,13743,348374,705618,417351,115767,853417,30666,733162,858712,256363,177822,683846,622061,827987,854389,200153,859952,871,296910,516844,385774,118935,665057,36949,631680,118086,428021,716597,783347,813725,878892,436661,336825,755693,225822,339504,355226,784398,584838)'&lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11pt;"&gt;select @p1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Sep 2014 23:12:45 GMT</pubDate>
    <dc:creator>RandyKreuziger</dc:creator>
    <dc:date>2014-09-05T23:12:45Z</dc:date>
    <item>
      <title>DeleteFeatures Behavior Changed in ArcSDE 10.1  / SQL Server 2012</title>
      <link>https://community.esri.com/t5/data-management-questions/deletefeatures-behavior-changed-in-arcsde-10-1-sql/m-p/122733#M7080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: Calibri; font-size: 11pt;"&gt;DeleteFeatures no longer deletes all records at one time which it's supose to do when the input is a feature class or table!&amp;nbsp; We upgraded from ArcGIS 10.0 / SQL 2008 to ArcGIS 10.1 / SQL 2012 so I don't know which caused the change.&amp;nbsp; In 10.0 this was carried out all at once in like a truncate on the database side, but after upgrading it's taking forever now.&amp;nbsp; Through SQL Profiler I can see that the records are being deleted in batches of about 150 records at a time, so what use to take about 2 to 3 seconds now takes over 30 minutes for a feature class containing a 1,000,000 records.&amp;nbsp; Is there any fix for this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11pt;"&gt;BTW, this is similar to a bug introduced back in 9.3.1&lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11pt;"&gt;&lt;A _jive_internal="true" href="https://community.esri.com/message/16613?sr=search&amp;amp;searchId=27c4082a-5048-443b-ab3e-d38219e3b633&amp;amp;searchIndex=4#16613"&gt;https://community.esri.com/message/16613?sr=search&amp;amp;searchId=27c4082a-5048-443b-ab3e-d38219e3b633&amp;amp;searchIndex=4#16613&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11pt;"&gt;-- sample from SQL profiler --&lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11pt;"&gt;declare @p1 int&lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11pt;"&gt;set @p1=8003&lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11pt;"&gt;exec sp_prepexec @p1&lt;BR /&gt;output,NULL,N'DELETE FROM GEOLIB_STAGE.DBO.TRANS WHERE OBJECTID IN&lt;BR /&gt;(8678,149031,781870,529051,850941,146097,548880,540263,435454,354365,529268,582084,247165,795180,559851,414179,446673,660244,490564,517760,142856,241123,695475,471813,307298,412080,719441,332785,592142,194167,188071,810130,824122,400725,570745,21179,375132,466956,743512,188859,661765,372015,794739,91259,138852,136984,883971,444122,485764,713000,134614,347483,503788,44012,840195,132928,875866,156734,523141,402599,752233,603552,330094,513428,53304,131004,803002,129594,498844,667558,90466,357945,633048,672060,479776,608211,820966,126915,265315,440638,677618,464150,236562,34384,749617,733983,658454,506931,764976,301637,532466,872429,19165,7489,252175,120581,409177,543996,163044,438198,534060,262530,872814,185194,325948,81350,576719,110589,181631,55689,398198,13743,348374,705618,417351,115767,853417,30666,733162,858712,256363,177822,683846,622061,827987,854389,200153,859952,871,296910,516844,385774,118935,665057,36949,631680,118086,428021,716597,783347,813725,878892,436661,336825,755693,225822,339504,355226,784398,584838)'&lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11pt;"&gt;select @p1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2014 23:12:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/deletefeatures-behavior-changed-in-arcsde-10-1-sql/m-p/122733#M7080</guid>
      <dc:creator>RandyKreuziger</dc:creator>
      <dc:date>2014-09-05T23:12:45Z</dc:date>
    </item>
    <item>
      <title>Re: DeleteFeatures Behavior Changed in ArcSDE 10.1  / SQL Server 2012</title>
      <link>https://community.esri.com/t5/data-management-questions/deletefeatures-behavior-changed-in-arcsde-10-1-sql/m-p/122734#M7081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The 'Delete Features" or "Delete Rows" have always been deleting one record at a time. So what you may be observing is a performance degradation w.r.t. the tool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is your data registered as Versioned? If not, you may try the Truncate table tool. It deletes all the records in a table\fc in one go.&lt;/P&gt;&lt;P&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//00170000016z000000" title="http://resources.arcgis.com/en/help/main/10.1/index.html#//00170000016z000000"&gt;ArcGIS Help 10.1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: Try to post your question with proper tags to get a wider audience.&lt;/P&gt;&lt;P&gt;enterprise gis sde‌sde‌managing_data‌geodatabase‌arcgis sde‌enterprise geodatabases (arcsde)‌gp tools‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2014 23:32:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/deletefeatures-behavior-changed-in-arcsde-10-1-sql/m-p/122734#M7081</guid>
      <dc:creator>AsrujitSengupta</dc:creator>
      <dc:date>2014-09-05T23:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: DeleteFeatures Behavior Changed in ArcSDE 10.1  / SQL Server 2012</title>
      <link>https://community.esri.com/t5/data-management-questions/deletefeatures-behavior-changed-in-arcsde-10-1-sql/m-p/122735#M7082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No it's not versioned.&amp;nbsp; I just saw the Truncate Tool under Data Management Tools | Tables but it's not under Features so I missed it.&amp;nbsp; (But I am disappointed I have to modify all my scripts and models after ESRI changed the behavior of a tool.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2014 23:37:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/deletefeatures-behavior-changed-in-arcsde-10-1-sql/m-p/122735#M7082</guid>
      <dc:creator>RandyKreuziger</dc:creator>
      <dc:date>2014-09-05T23:37:02Z</dc:date>
    </item>
  </channel>
</rss>

