<?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 Delete features in SDE with python in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/delete-features-in-sde-with-python/m-p/110376#M6280</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We are running ArcGIS Server 9.3.1 with Oracle 11g.&amp;nbsp; I have a number of featureclasses in the SDE database that needs to be replaced once a week.&amp;nbsp; Each week I get CSV files from our mainframe that need to be loaded to the Featureclasses in SDE replacing the features that are already there.&amp;nbsp; I have written a python script to handle all the processing involved, but it takes 19 hours to run.&amp;nbsp; It appears that the srcipt is having trouble with the DeleteFeatures_Management tool and takes a very long time to run.&amp;nbsp; It hangs on the largest Featuredataset which contains 210230 features.&amp;nbsp; The rest of the script takes only 20 minutes to run.&amp;nbsp; This data is being used in a web map to allow the field crews access to the data.&amp;nbsp; Because of this, I have versioned the data so I would not have to disable the service for the web map.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a more efficient way to delete all the features in the featureclasses?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Mar 2011 11:52:30 GMT</pubDate>
    <dc:creator>KevinBurton</dc:creator>
    <dc:date>2011-03-23T11:52:30Z</dc:date>
    <item>
      <title>Delete features in SDE with python</title>
      <link>https://community.esri.com/t5/data-management-questions/delete-features-in-sde-with-python/m-p/110376#M6280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We are running ArcGIS Server 9.3.1 with Oracle 11g.&amp;nbsp; I have a number of featureclasses in the SDE database that needs to be replaced once a week.&amp;nbsp; Each week I get CSV files from our mainframe that need to be loaded to the Featureclasses in SDE replacing the features that are already there.&amp;nbsp; I have written a python script to handle all the processing involved, but it takes 19 hours to run.&amp;nbsp; It appears that the srcipt is having trouble with the DeleteFeatures_Management tool and takes a very long time to run.&amp;nbsp; It hangs on the largest Featuredataset which contains 210230 features.&amp;nbsp; The rest of the script takes only 20 minutes to run.&amp;nbsp; This data is being used in a web map to allow the field crews access to the data.&amp;nbsp; Because of this, I have versioned the data so I would not have to disable the service for the web map.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a more efficient way to delete all the features in the featureclasses?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2011 11:52:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/delete-features-in-sde-with-python/m-p/110376#M6280</guid>
      <dc:creator>KevinBurton</dc:creator>
      <dc:date>2011-03-23T11:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: Delete features in SDE with python</title>
      <link>https://community.esri.com/t5/data-management-questions/delete-features-in-sde-with-python/m-p/110377#M6281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Kevin,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The only thing I can think of is to make sure your versions are reconciled, posted, deleted and db compressed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you able to use 10?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could you provide the python script you are doing to update SDE weekly?&amp;nbsp; I have been trying to do this and keep running into issues with versions and/or locking (I have an ArcGIS Server service hitting the feature class).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Eric Fowler&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;We are running ArcGIS Server 9.3.1 with Oracle 11g.&amp;nbsp; I have a number of featureclasses in the SDE database that needs to be replaced once a week.&amp;nbsp; Each week I get CSV files from our mainframe that need to be loaded to the Featureclasses in SDE replacing the features that are already there.&amp;nbsp; I have written a python script to handle all the processing involved, but it takes 19 hours to run.&amp;nbsp; It appears that the srcipt is having trouble with the DeleteFeatures_Management tool and takes a very long time to run.&amp;nbsp; It hangs on the largest Featuredataset which contains 210230 features.&amp;nbsp; The rest of the script takes only 20 minutes to run.&amp;nbsp; This data is being used in a web map to allow the field crews access to the data.&amp;nbsp; Because of this, I have versioned the data so I would not have to disable the service for the web map.&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;Is there a more efficient way to delete all the features in the featureclasses?&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2011 02:41:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/delete-features-in-sde-with-python/m-p/110377#M6281</guid>
      <dc:creator>EricFowler</dc:creator>
      <dc:date>2011-03-24T02:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: Delete features in SDE with python</title>
      <link>https://community.esri.com/t5/data-management-questions/delete-features-in-sde-with-python/m-p/110378#M6282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Eric,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am currently unable to use 10.&amp;nbsp; I attached the script for you to view.&amp;nbsp; The data is registered as versioned with the option to move edits to base, and this is the only editing that occurs with this data.&amp;nbsp; I run a compress at the end of the script which pushes all the edits to the base tables.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After some serious searching, it appears that we may need to run a delete command directly on the server from the command prompt.&amp;nbsp; Oracle doesn't seem to like it when you delete a large number of records at once.&amp;nbsp; We are still looking into this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kevin&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Kevin,&lt;BR /&gt;&lt;BR /&gt;The only thing I can think of is to make sure your versions are reconciled, posted, deleted and db compressed.&lt;BR /&gt;&lt;BR /&gt;Are you able to use 10?&lt;BR /&gt;&lt;BR /&gt;Could you provide the python script you are doing to update SDE weekly?&amp;nbsp; I have been trying to do this and keep running into issues with versions and/or locking (I have an ArcGIS Server service hitting the feature class).&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Eric Fowler&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2011 10:38:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/delete-features-in-sde-with-python/m-p/110378#M6282</guid>
      <dc:creator>KevinBurton</dc:creator>
      <dc:date>2011-03-24T10:38:18Z</dc:date>
    </item>
  </channel>
</rss>

