<?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 Re: Disable spatial index while data is loading with arcpy InsertCursor in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/disable-spatial-index-while-data-is-loading-with/m-p/1367538#M69566</link>
    <description>&lt;P&gt;Reviewing the &lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/classes/env.htm" target="_self"&gt;environment settings for arcpy&lt;/A&gt;, there's a note about the&amp;nbsp;&lt;SPAN&gt;maintainSpatialIndex property:&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;H5&gt;Legacy:&lt;/H5&gt;&lt;P&gt;The Maintain Spatial Index environment is not honored in&amp;nbsp;&lt;SPAN class=""&gt;ArcGIS Pro&lt;/SPAN&gt;. To have the same behavior as the Maintain Spatial Index environment in&amp;nbsp;&lt;SPAN class=""&gt;ArcGIS Pro&amp;nbsp;&lt;/SPAN&gt;when running tools and workflows that perform insert, update, and delete operations on existing data in enterprise geodatabases, control of the spatial index can be accomplished using the&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/3.2/tool-reference/data-management/remove-spatial-index.htm" target="_blank" rel="noopener"&gt;Remove Spatial Index&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;tool to remove the spatial index prior to processing and the&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/3.2/tool-reference/data-management/add-spatial-index.htm" target="_blank" rel="noopener"&gt;Add Spatial Index&lt;/A&gt; tool&amp;nbsp;&lt;/SPAN&gt;to re-create the spatial index after processing.&lt;/P&gt;&lt;P&gt;The&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/3.2/tool-reference/data-management/append.htm" target="_blank" rel="noopener"&gt;Append&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;tool also supports this workflow with file geodatabase data.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;So you should be able to utilize the remove spatial index and add spatial index tools to accomplish this.&lt;/P&gt;</description>
    <pubDate>Mon, 08 Jan 2024 18:53:35 GMT</pubDate>
    <dc:creator>BlakeTerhune</dc:creator>
    <dc:date>2024-01-08T18:53:35Z</dc:date>
    <item>
      <title>Disable spatial index while data is loading with arcpy InsertCursor</title>
      <link>https://community.esri.com/t5/python-questions/disable-spatial-index-while-data-is-loading-with/m-p/1367454#M69560</link>
      <description>&lt;P&gt;At every row insert index are recalculated.&lt;BR /&gt;In .net to avoid it we can use IFeatureClassLoad to disable&amp;nbsp;updating of the spatial index while data is loading &lt;A href="https://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#//0025000002rz000000" target="_blank" rel="noopener"&gt;https://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#//0025000002rz000000&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Is there an equivalent method with arcpy InsertCursor?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2024 17:09:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/disable-spatial-index-while-data-is-loading-with/m-p/1367454#M69560</guid>
      <dc:creator>Hildermes</dc:creator>
      <dc:date>2024-01-08T17:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: Disable spatial index while data is loading with arcpy InsertCursor</title>
      <link>https://community.esri.com/t5/python-questions/disable-spatial-index-while-data-is-loading-with/m-p/1367538#M69566</link>
      <description>&lt;P&gt;Reviewing the &lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/classes/env.htm" target="_self"&gt;environment settings for arcpy&lt;/A&gt;, there's a note about the&amp;nbsp;&lt;SPAN&gt;maintainSpatialIndex property:&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;H5&gt;Legacy:&lt;/H5&gt;&lt;P&gt;The Maintain Spatial Index environment is not honored in&amp;nbsp;&lt;SPAN class=""&gt;ArcGIS Pro&lt;/SPAN&gt;. To have the same behavior as the Maintain Spatial Index environment in&amp;nbsp;&lt;SPAN class=""&gt;ArcGIS Pro&amp;nbsp;&lt;/SPAN&gt;when running tools and workflows that perform insert, update, and delete operations on existing data in enterprise geodatabases, control of the spatial index can be accomplished using the&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/3.2/tool-reference/data-management/remove-spatial-index.htm" target="_blank" rel="noopener"&gt;Remove Spatial Index&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;tool to remove the spatial index prior to processing and the&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/3.2/tool-reference/data-management/add-spatial-index.htm" target="_blank" rel="noopener"&gt;Add Spatial Index&lt;/A&gt; tool&amp;nbsp;&lt;/SPAN&gt;to re-create the spatial index after processing.&lt;/P&gt;&lt;P&gt;The&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/3.2/tool-reference/data-management/append.htm" target="_blank" rel="noopener"&gt;Append&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;tool also supports this workflow with file geodatabase data.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;So you should be able to utilize the remove spatial index and add spatial index tools to accomplish this.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2024 18:53:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/disable-spatial-index-while-data-is-loading-with/m-p/1367538#M69566</guid>
      <dc:creator>BlakeTerhune</dc:creator>
      <dc:date>2024-01-08T18:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: Disable spatial index while data is loading with arcpy InsertCursor</title>
      <link>https://community.esri.com/t5/python-questions/disable-spatial-index-while-data-is-loading-with/m-p/1367564#M69568</link>
      <description>&lt;P&gt;&lt;A href="https://github.com/Esri/arcgis-python-api/issues/1186" target="_blank"&gt;https://github.com/Esri/arcgis-python-api/issues/1186&lt;/A&gt;&lt;BR /&gt;thanks that's exactly what I`m doing. So it is the correct route....I thought it might had another way.&lt;BR /&gt;It's good to have doc stating it though&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2024 19:31:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/disable-spatial-index-while-data-is-loading-with/m-p/1367564#M69568</guid>
      <dc:creator>Hildermes</dc:creator>
      <dc:date>2024-01-08T19:31:35Z</dc:date>
    </item>
  </channel>
</rss>

