<?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 Stored procedure to bulk insert County feature class into Oracle in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/stored-procedure-to-bulk-insert-county-feature/m-p/202363#M7926</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We get&amp;nbsp; quarterly updated CA county parcels fcs from a vendor. I am currently using python and insert da cursor to append all rows (it allows me to avoid any schema locks). However this process takes a long time (5hours) as the number of record is very large (13 millions rows). I was wondering if there is was a way to create some sort of stored procedure on the Oracle side to update the data?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any thoughts on this would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 May 2019 22:48:45 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2019-05-17T22:48:45Z</dc:date>
    <item>
      <title>Stored procedure to bulk insert County feature class into Oracle</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/stored-procedure-to-bulk-insert-county-feature/m-p/202363#M7926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We get&amp;nbsp; quarterly updated CA county parcels fcs from a vendor. I am currently using python and insert da cursor to append all rows (it allows me to avoid any schema locks). However this process takes a long time (5hours) as the number of record is very large (13 millions rows). I was wondering if there is was a way to create some sort of stored procedure on the Oracle side to update the data?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any thoughts on this would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2019 22:48:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/stored-procedure-to-bulk-insert-county-feature/m-p/202363#M7926</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2019-05-17T22:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: Stored procedure to bulk insert County feature class into Oracle</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/stored-procedure-to-bulk-insert-county-feature/m-p/202364#M7927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried using the Append geoprocessing tool?&amp;nbsp; In general, the geoprocessing tools are designed to work on sets of data, and they tend to be more efficient than ArcPy cursors when working with large amounts of data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 May 2019 15:01:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/stored-procedure-to-bulk-insert-county-feature/m-p/202364#M7927</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2019-05-18T15:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: Stored procedure to bulk insert County feature class into Oracle</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/stored-procedure-to-bulk-insert-county-feature/m-p/202365#M7928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The issue I have had with the append tool is that sometimes there are some locks established from some users and it fails. I have not encountered any issues with the&amp;nbsp;cursors. It seems like&amp;nbsp;locks dont prevent the cursors from running.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 May 2019 15:18:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/stored-procedure-to-bulk-insert-county-feature/m-p/202365#M7928</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2019-05-20T15:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: Stored procedure to bulk insert County feature class into Oracle</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/stored-procedure-to-bulk-insert-county-feature/m-p/202366#M7929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As the adage goes, premature optimization is the root of all evil.&amp;nbsp; Given the information you have provided, I really wonder whether optimizing your data loading is worth it.&amp;nbsp; Sure, 5 hours isn't quick, but the process only runs once a quarter, and the how much is really gained from trimming 2 or 3 hours off the process if you burn 20 hours researching and testing alternatives.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Setting the larger question aside of whether optimizing is worth it, there are quite a few factors that affect how quickly the data loads.&amp;nbsp; Are you using ArcMap or ArcGIS Pro?&amp;nbsp; Is the data versioned or not?&amp;nbsp; If versioned, how many versions are there in the GDB and have they been reconciled recently?&amp;nbsp; Has the GDB been compressed recently?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 May 2019 15:43:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/stored-procedure-to-bulk-insert-county-feature/m-p/202366#M7929</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2019-05-20T15:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: Stored procedure to bulk insert County feature class into Oracle</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/stored-procedure-to-bulk-insert-county-feature/m-p/202367#M7930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;True. I was just wondering if there was a way. 5hours is no big deal as the process runs at night but I thought I would ask to see if there are ways to achieve this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;To answer your questions below:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Are you using ArcMap or ArcGIS Pro?&amp;nbsp; &lt;STRONG&gt;I am using python 3.5 (ArcPro)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;Is the data versioned or not?&amp;nbsp;&lt;STRONG&gt;Not versioned&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;If versioned, how many versions are there in the GDB and have they been reconciled recently? &lt;STRONG&gt;None&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Has the GDB been compressed recently?&lt;STRONG&gt;Yes, we recently upgraded our SDE to 10.6 and went through a compress&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 May 2019 15:51:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/stored-procedure-to-bulk-insert-county-feature/m-p/202367#M7930</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2019-05-20T15:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: Stored procedure to bulk insert County feature class into Oracle</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/stored-procedure-to-bulk-insert-county-feature/m-p/202368#M7931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Typically when data is inserted or updated in database tables, the DBMS updates the indexes as the operations happen.&amp;nbsp; This is good overall, since stale indexes can cause huge performance hits; however, doing so also slows down bulk loading.&amp;nbsp; What you could do is remove all the indexes, including spatial index, insert all the new data; and then rebuild the indexes after the data is loaded.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 May 2019 17:01:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/stored-procedure-to-bulk-insert-county-feature/m-p/202368#M7931</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2019-05-20T17:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: Stored procedure to bulk insert County feature class into Oracle</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/stored-procedure-to-bulk-insert-county-feature/m-p/202369#M7932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That could be a good solution.&amp;nbsp;We had issues removing then rebuilding the spatial index the other day. We could not rebuild indexes afterwards. Maybe an issue on the Oracle side.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 May 2019 20:23:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/stored-procedure-to-bulk-insert-county-feature/m-p/202369#M7932</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2019-05-20T20:23:00Z</dc:date>
    </item>
  </channel>
</rss>

