<?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: Speed up ST Functions in Geodatabase Questions</title>
    <link>https://community.esri.com/t5/geodatabase-questions/speed-up-st-functions/m-p/783778#M1700</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have the standard Spatial Index created through the desktop tools:&lt;/P&gt;&lt;P&gt;INDEXTYPE IS SDE.ST_SPATIAL_INDEX&lt;/P&gt;&lt;P&gt;PARAMETERS('ST_GRIDS = 530 ST_SRID = 26917 ST_COMMIT_ROWS = 10000&amp;nbsp; PCTFREE 0 INITRANS 4')&lt;/P&gt;&lt;P&gt;NOPARALLEL;&lt;/P&gt;&lt;P&gt;Is there a way to test if the query is calling the spatial index?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Secondly, I'm a little unsure of how/where to use the st_envintersects ? Am I replacing the st_intersect with it? or do I need to use them both?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Feb 2015 20:18:27 GMT</pubDate>
    <dc:creator>NicoleSchleifer</dc:creator>
    <dc:date>2015-02-17T20:18:27Z</dc:date>
    <item>
      <title>Speed up ST Functions</title>
      <link>https://community.esri.com/t5/geodatabase-questions/speed-up-st-functions/m-p/783776#M1698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are working on migrating our existing applications from SDO_Geometry into ST_Geometry (Oracle 11g - SDE 10.2.2).&lt;/P&gt;&lt;P&gt;One of our applications uses an iPad to get the X, Y coordinates and locate the closest linear asset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our SDO sql statement was simple:&lt;/P&gt;&lt;P&gt;WHERE SDO_WITHIN_DISTANCE ( A.AREAGEOMETRY ,mdsys.sdo_geometry(2001, 8307,&lt;/P&gt;&lt;P&gt; mdsys.sdo_point_type( -78.2990416, 44.29297897, NULL), NULL, NULL),&amp;nbsp; 'distance=75') = 'TRUE'&lt;/P&gt;&lt;P&gt;The response time is 196 msecs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attempting to duplicate the results using ST functions is a little frustrating&lt;/P&gt;&lt;P&gt;I have not been able to us the x, y points from the iPad at all, so I've been uisng the UTM coordinates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been able to reproduce the results using the UTM coordinates but the response time is way too slow (see below)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;14 secs&lt;/P&gt;&lt;P&gt;where sde.st_intersects (sde.st_buffer(sde.st_point(715480.6, 4907962.3, 26917), 15 ),pl.shape) = 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;11 secs&lt;/P&gt;&lt;P&gt;where sde.st_distance (sde.st_point(715480.6, 4907962.3, 26917),pl.shape)&amp;nbsp; &amp;lt; 15&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;9 secs&lt;/P&gt;&lt;P&gt;where sde.st_distance (sde.st_geometry(715480.6, 4907962.3,null,null, 26917),pl.shape)&amp;nbsp; &amp;lt; 15&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have any advice for how to speed the response time up?&lt;/P&gt;&lt;P&gt;Are these the correct sql functions? or am I missing one?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Feb 2015 18:31:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/speed-up-st-functions/m-p/783776#M1698</guid>
      <dc:creator>NicoleSchleifer</dc:creator>
      <dc:date>2015-02-17T18:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: Speed up ST Functions</title>
      <link>https://community.esri.com/t5/geodatabase-questions/speed-up-st-functions/m-p/783777#M1699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The st_distance query is doing a full table scan (not using the spatial index), so you need to get the spatial index in play by using &lt;CODE&gt;sde.ST_ENVINTERSECTS &lt;/CODE&gt;in the first term of the WHERE clause.&amp;nbsp; The ST_INTERESECTS query should have been enough to engage the spatial index, so I also wonder if you have the index available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- V&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Feb 2015 19:59:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/speed-up-st-functions/m-p/783777#M1699</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2015-02-17T19:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: Speed up ST Functions</title>
      <link>https://community.esri.com/t5/geodatabase-questions/speed-up-st-functions/m-p/783778#M1700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have the standard Spatial Index created through the desktop tools:&lt;/P&gt;&lt;P&gt;INDEXTYPE IS SDE.ST_SPATIAL_INDEX&lt;/P&gt;&lt;P&gt;PARAMETERS('ST_GRIDS = 530 ST_SRID = 26917 ST_COMMIT_ROWS = 10000&amp;nbsp; PCTFREE 0 INITRANS 4')&lt;/P&gt;&lt;P&gt;NOPARALLEL;&lt;/P&gt;&lt;P&gt;Is there a way to test if the query is calling the spatial index?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Secondly, I'm a little unsure of how/where to use the st_envintersects ? Am I replacing the st_intersect with it? or do I need to use them both?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Feb 2015 20:18:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/speed-up-st-functions/m-p/783778#M1700</guid>
      <dc:creator>NicoleSchleifer</dc:creator>
      <dc:date>2015-02-17T20:18:27Z</dc:date>
    </item>
    <item>
      <title>Re: Speed up ST Functions</title>
      <link>https://community.esri.com/t5/geodatabase-questions/speed-up-st-functions/m-p/783779#M1701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not having the data, and not having the time to simulate some, I'm not fond of specifying a query, but something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHERE sde.&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;st_envintersects(&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;pl.shape,&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;715480.6-15,&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;4907962.3-15,&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;715480.6+15,&lt;/SPAN&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;4907962.3+15) = 1&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and&amp;nbsp; &lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;sde.st_distance (sde.st_geometry(715480.6, 4907962.3,null,null, 26917),pl.shape)&amp;nbsp; &amp;lt; 15&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;ought to work reasonably quickly.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;You need to review the query plan to determine whether the index is being used, but I can't give you further information than that.&amp;nbsp; You may need to work with Tech Support to determine the optimal query (it doesn't help that the old query was in WGS_1984).&amp;nbsp; It's possible that a 530 meter index grid is inappropriate for that dataset (but couldn't say for sure without the data).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;BTW: change the "15"s to "75"s if you want a similar result as Oracle with a "75" query.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;- V&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Feb 2015 22:27:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/speed-up-st-functions/m-p/783779#M1701</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2015-02-17T22:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: Speed up ST Functions</title>
      <link>https://community.esri.com/t5/geodatabase-questions/speed-up-st-functions/m-p/783780#M1702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Totally understandable. You're response is appreciated.&lt;/P&gt;&lt;P&gt;I will continue on this path.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2015 13:42:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/speed-up-st-functions/m-p/783780#M1702</guid>
      <dc:creator>NicoleSchleifer</dc:creator>
      <dc:date>2015-02-18T13:42:02Z</dc:date>
    </item>
    <item>
      <title>Re: Speed up ST Functions</title>
      <link>https://community.esri.com/t5/geodatabase-questions/speed-up-st-functions/m-p/783781#M1703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;THANK-YOU SO MUCH! It works perfectly!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Response time is now 264 msecs......... SO EXCITING!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2015 14:37:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/speed-up-st-functions/m-p/783781#M1703</guid>
      <dc:creator>NicoleSchleifer</dc:creator>
      <dc:date>2015-02-18T14:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: Speed up ST Functions</title>
      <link>https://community.esri.com/t5/geodatabase-questions/speed-up-st-functions/m-p/1269280#M8350</link>
      <description>&lt;P&gt;Related:&amp;nbsp;&lt;A href="https://community.esri.com/t5/geodatabase-questions/sdo-geometry-functions-are-20x-faster-than-sde-st/td-p/1190127" target="_self"&gt;SDO_GEOMETRY functions are 20x faster than SDE.ST_GEOMETRY functions (startpoint XY)&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 19 Mar 2023 19:22:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/speed-up-st-functions/m-p/1269280#M8350</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2023-03-19T19:22:24Z</dc:date>
    </item>
  </channel>
</rss>

