<?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 Does Select By Location (ArcObjects) use spatial indexes? in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/does-select-by-location-arcobjects-use-spatial/m-p/1274399#M20580</link>
    <description>&lt;P&gt;Does the Select By Location tool in ArcGIS Pro make use of spatial indexes in the DB when performing spatial operations? For example, SDO_GEOMETRY (Oracle) and SDE._ST_GEOMETRY spatial indexes.&lt;/P&gt;&lt;P&gt;I want to understand why&amp;nbsp;Select By Location/ArcObjects is so fast compared to spatial SQL queries. I talk more about it here:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;A href="https://community.esri.com/t5/arcgis-enterprise-questions/why-are-spatial-sql-queries-so-much-slower-than/td-p/1274156" target="_self"&gt;Why are spatial SQL queries so much slower than Select By Location?&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://community.esri.com/t5/arcgis-pro-ideas/select-by-location-feature-layer-spatial-query/idc-p/1274395#M24192" target="_self"&gt;Idea: “Select By Location” Feature Layer — Spatial query that is fast, modifiable, and refreshable&lt;/A&gt;&lt;/LI&gt;&lt;/OL&gt;</description>
    <pubDate>Sun, 02 Apr 2023 02:42:57 GMT</pubDate>
    <dc:creator>Bud</dc:creator>
    <dc:date>2023-04-02T02:42:57Z</dc:date>
    <item>
      <title>Does Select By Location (ArcObjects) use spatial indexes?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/does-select-by-location-arcobjects-use-spatial/m-p/1274399#M20580</link>
      <description>&lt;P&gt;Does the Select By Location tool in ArcGIS Pro make use of spatial indexes in the DB when performing spatial operations? For example, SDO_GEOMETRY (Oracle) and SDE._ST_GEOMETRY spatial indexes.&lt;/P&gt;&lt;P&gt;I want to understand why&amp;nbsp;Select By Location/ArcObjects is so fast compared to spatial SQL queries. I talk more about it here:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;A href="https://community.esri.com/t5/arcgis-enterprise-questions/why-are-spatial-sql-queries-so-much-slower-than/td-p/1274156" target="_self"&gt;Why are spatial SQL queries so much slower than Select By Location?&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://community.esri.com/t5/arcgis-pro-ideas/select-by-location-feature-layer-spatial-query/idc-p/1274395#M24192" target="_self"&gt;Idea: “Select By Location” Feature Layer — Spatial query that is fast, modifiable, and refreshable&lt;/A&gt;&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Sun, 02 Apr 2023 02:42:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/does-select-by-location-arcobjects-use-spatial/m-p/1274399#M20580</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2023-04-02T02:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: Does Select By Location (ArcObjects) use spatial database indexes?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/does-select-by-location-arcobjects-use-spatial/m-p/1274404#M20581</link>
      <description>&lt;P&gt;I'm going to stick my neck out and say yes. I base that opinion on my experience. If the input dataset to a select by location is a shapefile without it's spatial index I often observe poor performance. Add a spatial index and I see significant improvement with such tools.&amp;nbsp; I've never used SDE so I'm assuming that would behave the same as I see that as a superior storage format.&lt;/P&gt;</description>
      <pubDate>Sat, 01 Apr 2023 20:10:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/does-select-by-location-arcobjects-use-spatial/m-p/1274404#M20581</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2023-04-01T20:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: Does Select By Location (ArcObjects) use spatial database indexes?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/does-select-by-location-arcobjects-use-spatial/m-p/1274416#M20582</link>
      <description>&lt;P&gt;Thanks. Interesting.&lt;/P&gt;&lt;P&gt;I did a test on some SDO_GEOMETRY (Oracle) &lt;A href="https://stackoverflow.com/questions/75884042/query-optimization-select-polygons-that-intersect-points" target="_self"&gt;test data&lt;/A&gt;.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;With spatial indexes:&lt;UL class="lia-list-style-type-circle"&gt;&lt;LI&gt;Select By Location - Intersect: &lt;STRONG&gt;0.5 seconds&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;Spatial SQL query: &lt;STRONG&gt;4.5 seconds&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;Without spatial indexes (dropped via SQL client):&lt;UL class="lia-list-style-type-circle"&gt;&lt;LI&gt;Select By Location - Intersect: &lt;STRONG&gt;6 seconds&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;Spatial SQL query: &lt;STRONG&gt;1hr 50mins.&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Conclusion:&lt;/P&gt;&lt;P&gt;With SDO_GEOMETRY data, Select By Location seems to use spatial indexes. But it's still relatively fast when spatial indexes are missing; way faster than a spatial SQL query.&lt;/P&gt;</description>
      <pubDate>Sun, 02 Apr 2023 14:38:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/does-select-by-location-arcobjects-use-spatial/m-p/1274416#M20582</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2023-04-02T14:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: Does Select By Location (ArcObjects) use spatial database indexes?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/does-select-by-location-arcobjects-use-spatial/m-p/1274417#M20583</link>
      <description>&lt;P&gt;Side note:&lt;/P&gt;&lt;P&gt;In older versions of Oracle, SDO_GEOMETRY spatial indexes were required in order for spatial querying to work. The Esri docs used to say this: (until they were &lt;A href="https://community.esri.com/t5/arcgis-enterprise-ideas/esri-docs-need-updating-function-based-spatial/idi-p/1174005" target="_self"&gt;updated in 2022&lt;/A&gt;)&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;A href="https://support.esri.com/en/technical-article/000011694" target="_self" rel="nofollow noopener noreferrer"&gt;&lt;SPAN&gt;How To: Create Oracle Spatial function-based indexing&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;When creating a query layer that references an Oracle view containing an Oracle Spatial attribute, the attribute must have a spatial index. Without the spatial index, spatial queries cannot be executed.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;However, &lt;A href="https://forums.oracle.com/ords/apexds/post/in-what-version-of-oracle-did-spatial-indexes-become-option-7671" target="_self"&gt;in Oracle 18c and beyond&lt;/A&gt;, spatial indexes are optional but strongly recommended.&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;A href="https://docs.oracle.com/en/database/oracle/oracle-database/18/spatl/whats-new.html#GUID-9A203079-C41C-4AD0-B8D9-01485A77E2DB" target="_self" rel="nofollow noopener noreferrer"&gt;Spatial Index No Longer Required&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Creating and using a spatial index is no longer required for the use of any Oracle Spatial and Graph features. However, spatial indexes are highly recommended, and not using them can negatively affect performance in some cases.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Sun, 02 Apr 2023 20:15:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/does-select-by-location-arcobjects-use-spatial/m-p/1274417#M20583</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2023-04-02T20:15:05Z</dc:date>
    </item>
  </channel>
</rss>

