<?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 Query intersect functionality in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-intersect-functionality/m-p/750359#M69415</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm currently developing an application that allows users to draw geometry on a map, and then this geometry is used to search against a point feature class stored in Oracle SDE (st_geometry).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Am I correct in say that when using the query/querytask functionality and supplying a search geometry, ArcGIS Server will query the layer for any points that intersect the _envelope_ of the search geometry, and then do the intersect itself in memory?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The reason I ask is that when a user draws any geometry which has an extent far bigger than the geometry itself (for example a diagonal line), we are noticing serious performance hits when attempting to run the query. I'm not even referring to displaying the results - just running the query against the map service endpoint is slow. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;While the dataset that is being queried is big (3 million records), a search will often only return 1000 points, which I think is a reasonable amount. But it can take up to 2 minutes for this query to execute and the results to be returned.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are there any improvements I can make or functionality I could implement which might help me to speed up the query?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Dec 2013 07:18:45 GMT</pubDate>
    <dc:creator>SteveMcMaster</dc:creator>
    <dc:date>2013-12-16T07:18:45Z</dc:date>
    <item>
      <title>Query intersect functionality</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-intersect-functionality/m-p/750359#M69415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm currently developing an application that allows users to draw geometry on a map, and then this geometry is used to search against a point feature class stored in Oracle SDE (st_geometry).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Am I correct in say that when using the query/querytask functionality and supplying a search geometry, ArcGIS Server will query the layer for any points that intersect the _envelope_ of the search geometry, and then do the intersect itself in memory?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The reason I ask is that when a user draws any geometry which has an extent far bigger than the geometry itself (for example a diagonal line), we are noticing serious performance hits when attempting to run the query. I'm not even referring to displaying the results - just running the query against the map service endpoint is slow. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;While the dataset that is being queried is big (3 million records), a search will often only return 1000 points, which I think is a reasonable amount. But it can take up to 2 minutes for this query to execute and the results to be returned.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are there any improvements I can make or functionality I could implement which might help me to speed up the query?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Dec 2013 07:18:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-intersect-functionality/m-p/750359#M69415</guid>
      <dc:creator>SteveMcMaster</dc:creator>
      <dc:date>2013-12-16T07:18:45Z</dc:date>
    </item>
  </channel>
</rss>

