<?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: Maintain Spatial Index not honored in ArcGIS Pro? in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/maintain-spatial-index-not-honored-in-arcgis-pro/m-p/1222040#M26526</link>
    <description>&lt;P&gt;You say&amp;nbsp; "...&lt;SPAN&gt;this tool is run frequently...", but you&amp;nbsp;&lt;/SPAN&gt;don't say if you run the Append tool in a model or in a script?&lt;/P&gt;&lt;P&gt;Either way it seems this is a limitation of the Append tool you are experiencing. You could explore emulating the Append tool with an arcpy InsertCursor(). If you are running your working flow as a model then such python code could be run in a Calculate Value tool so you can use the rest of the model logic.&lt;/P&gt;</description>
    <pubDate>Fri, 14 Oct 2022 14:11:48 GMT</pubDate>
    <dc:creator>DuncanHornby</dc:creator>
    <dc:date>2022-10-14T14:11:48Z</dc:date>
    <item>
      <title>Maintain Spatial Index not honored in ArcGIS Pro?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/maintain-spatial-index-not-honored-in-arcgis-pro/m-p/1221506#M26511</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm using ArcGIS Pro 3.0.1 and I have a geoprocessing tool that creates some polyline features and appends them to a feature class that is stored in a SQL Server SDE database.&lt;/P&gt;&lt;P&gt;There are a large number of features already in the feature class, and I only append a small number of new features each time the tool is run.&amp;nbsp; However, I'm noticing that the Append operation is taking a very long time to complete (a minute or more).&amp;nbsp; It seems to be rebuilding the spatial index for the entire feature class each time the append is executed, which I don't want it to do.&amp;nbsp; The problem is this tool is run frequently, and we can't afford the long wait time or performance hit while it rebuilds the spatial index.&lt;/P&gt;&lt;P&gt;In ArcMap this could be resolved by setting the Maintain Spatial Index environment setting on the Append tool to true/checked.&amp;nbsp; And although that environment setting also exists in ArcGIS Pro (at a global level, not for the individual Append tool) it does not appear to be respecting it.&lt;/P&gt;&lt;P&gt;I found the following page saying that ArcGIS Pro doesn't honor this setting.&amp;nbsp; I'm wondering, why?&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/environment-settings/maintain-spatial-index.htm" target="_blank"&gt;Maintain Spatial Index (Environment setting)—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Is there another way I can prevent the Append tool from causing the spatial index to be rebuilt?&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2022 13:42:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/maintain-spatial-index-not-honored-in-arcgis-pro/m-p/1221506#M26511</guid>
      <dc:creator>DavidSchuster</dc:creator>
      <dc:date>2022-10-13T13:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: Maintain Spatial Index not honored in ArcGIS Pro?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/maintain-spatial-index-not-honored-in-arcgis-pro/m-p/1222040#M26526</link>
      <description>&lt;P&gt;You say&amp;nbsp; "...&lt;SPAN&gt;this tool is run frequently...", but you&amp;nbsp;&lt;/SPAN&gt;don't say if you run the Append tool in a model or in a script?&lt;/P&gt;&lt;P&gt;Either way it seems this is a limitation of the Append tool you are experiencing. You could explore emulating the Append tool with an arcpy InsertCursor(). If you are running your working flow as a model then such python code could be run in a Calculate Value tool so you can use the rest of the model logic.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 14:11:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/maintain-spatial-index-not-honored-in-arcgis-pro/m-p/1222040#M26526</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2022-10-14T14:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: Maintain Spatial Index not honored in ArcGIS Pro?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/maintain-spatial-index-not-honored-in-arcgis-pro/m-p/1222073#M26527</link>
      <description>&lt;P&gt;Sorry Duncan, I should have pointed out that this is a tool I built in ModelBuilder.&amp;nbsp; Yesterday I published it as a geoprocessing task which will be called about every minute by a Windows Service that we developed.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When I started up my project this morning after a reboot last night, I checked all my settings and my environment setting for Maintain Spatial Index was unchecked!&amp;nbsp; After checking it and saving, the append step runs in just a few seconds now, so maybe the documentation regarding this setting is not accurate after all?&amp;nbsp; I'll do more testing today to see if this performance improvement is consistent.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I hadn't thought of using Calculate Value to run blocks of arcpy code - good idea!&amp;nbsp; I haven't taken the plunge into writing these models using arcpy / Notebooks yet, but I think that's my next learning step.&amp;nbsp; I like the graphical presentation of ModelBuilder to see the interconnections, but there seem to be some quirks with it that could be avoided by using pure scripting.&lt;/P&gt;&lt;P&gt;Thank you for your reply!&lt;/P&gt;&lt;P&gt;-David&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 15:03:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/maintain-spatial-index-not-honored-in-arcgis-pro/m-p/1222073#M26527</guid>
      <dc:creator>DavidSchuster</dc:creator>
      <dc:date>2022-10-14T15:03:36Z</dc:date>
    </item>
  </channel>
</rss>

