<?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 How to increase the speed of spatial query in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-increase-the-speed-of-spatial-query/m-p/321421#M29592</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&amp;nbsp;I am using ArcGIS API for JavaScript v4.3 queryFeatures to get features in a layer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="color: #d4d4d4; font-weight: normal;"&gt; &lt;/DIV&gt;&lt;DIV style="color: #d4d4d4; font-weight: normal;"&gt;&lt;DIV style="background-color: #1e1e1e;"&gt;&lt;DIV&gt;&lt;DIV style="color: #d4d4d4; font-weight: normal;"&gt;&lt;SPAN style="color: #569cd6;"&gt;var&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;query&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #4ec9b0;"&gt;Query&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;({&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;returnGeometry:&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;true&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;outFields:&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"*"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;] });&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="color: #d4d4d4; font-weight: normal;"&gt;&lt;SPAN style="color: #9cdcfe;"&gt;query&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;geometry&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;geometryEngine&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #dcdcaa;"&gt;union&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;geometries&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;SPAN style="color: #9cdcfe;"&gt;self&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;censusLayers&lt;/SPAN&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;layerID&lt;/SPAN&gt;&lt;SPAN&gt;].&lt;/SPAN&gt;&lt;SPAN style="color: #dcdcaa;"&gt;queryFeatures&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;query&lt;/SPAN&gt;&lt;SPAN&gt;).&lt;/SPAN&gt;&lt;SPAN style="color: #dcdcaa;"&gt;then&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;function&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;results&lt;/SPAN&gt;&lt;SPAN&gt;) {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;//task/&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;});&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to increase the speed of execute this query? (assume the query geometries will be a 30 km radius circle and the query result will be 8000 SA1 geometries)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Aug 2017 04:53:17 GMT</pubDate>
    <dc:creator>IT_AppLayers</dc:creator>
    <dc:date>2017-08-01T04:53:17Z</dc:date>
    <item>
      <title>How to increase the speed of spatial query</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-increase-the-speed-of-spatial-query/m-p/321421#M29592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&amp;nbsp;I am using ArcGIS API for JavaScript v4.3 queryFeatures to get features in a layer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="color: #d4d4d4; font-weight: normal;"&gt; &lt;/DIV&gt;&lt;DIV style="color: #d4d4d4; font-weight: normal;"&gt;&lt;DIV style="background-color: #1e1e1e;"&gt;&lt;DIV&gt;&lt;DIV style="color: #d4d4d4; font-weight: normal;"&gt;&lt;SPAN style="color: #569cd6;"&gt;var&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;query&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #4ec9b0;"&gt;Query&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;({&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;returnGeometry:&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;true&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;outFields:&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"*"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;] });&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="color: #d4d4d4; font-weight: normal;"&gt;&lt;SPAN style="color: #9cdcfe;"&gt;query&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;geometry&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;geometryEngine&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #dcdcaa;"&gt;union&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;geometries&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;SPAN style="color: #9cdcfe;"&gt;self&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;censusLayers&lt;/SPAN&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;layerID&lt;/SPAN&gt;&lt;SPAN&gt;].&lt;/SPAN&gt;&lt;SPAN style="color: #dcdcaa;"&gt;queryFeatures&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;query&lt;/SPAN&gt;&lt;SPAN&gt;).&lt;/SPAN&gt;&lt;SPAN style="color: #dcdcaa;"&gt;then&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;function&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;results&lt;/SPAN&gt;&lt;SPAN&gt;) {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;//task/&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;});&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to increase the speed of execute this query? (assume the query geometries will be a 30 km radius circle and the query result will be 8000 SA1 geometries)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2017 04:53:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-increase-the-speed-of-spatial-query/m-p/321421#M29592</guid>
      <dc:creator>IT_AppLayers</dc:creator>
      <dc:date>2017-08-01T04:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to increase the speed of spatial query</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-increase-the-speed-of-spatial-query/m-p/321422#M29593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Adding Spatial Index&lt;/STRONG&gt; to the table could speed up the process.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2017 04:58:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-increase-the-speed-of-spatial-query/m-p/321422#M29593</guid>
      <dc:creator>JayantaPoddar</dc:creator>
      <dc:date>2017-08-01T04:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to increase the speed of spatial query</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-increase-the-speed-of-spatial-query/m-p/321423#M29594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have all the geometries that you're searching for in the client then you can perform the query there, without making a network request. &amp;nbsp;In my experience the bottleneck is usually the network request, so performing the search in the client should speed things up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which version of the API are you using? &amp;nbsp;And for each "census layer," are all features in the client? &amp;nbsp;Or are they being fetched on demand (only available in the 3.XX API)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2017 13:28:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-increase-the-speed-of-spatial-query/m-p/321423#M29594</guid>
      <dc:creator>ThomasSolow</dc:creator>
      <dc:date>2017-08-01T13:28:01Z</dc:date>
    </item>
  </channel>
</rss>

