<?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 Improved Arcade Speed for Intersects with FeatureSetByName - Large Datasets in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/improved-arcade-speed-for-intersects-with/m-p/1211288#M47808</link>
    <description>&lt;P&gt;I have a parcel pop-up and would like to include Flood Zone information from the FEMA Rest Service&lt;/P&gt;&lt;P&gt;The&amp;nbsp;&lt;A href="https://hazards.fema.gov/gis/nfhl/rest/services/public/NFHL/MapServer/28/" target="_self"&gt;FEMA Rest Service&lt;/A&gt;&amp;nbsp;is huge&amp;nbsp;&lt;SPAN&gt;3,981,995 records, and seems to slow down when demand peaks, taking up to a minute to return.&amp;nbsp; I am trying to optimized&amp;nbsp;my arcade&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;var Overlay = Intersects(FeatureSetByName($map,"NFHL - Flood Hazard Zones",['FLD_ZONE'],&lt;STRONG&gt;true&lt;/STRONG&gt;),$feature);&lt;/P&gt;&lt;P&gt;It was suggested to &lt;STRONG&gt;exclude geometry.&lt;/STRONG&gt;&amp;nbsp; This seems to work, and goes much faster.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;var Overlay = Intersects(FeatureSetByName($map,"NFHL - Flood Hazard Zones",['FLD_ZONE'],&lt;STRONG&gt;false&lt;/STRONG&gt;),$feature);&lt;/P&gt;&lt;P&gt;How does the &lt;STRONG&gt;Intersects&lt;/STRONG&gt; work with out the &lt;STRONG&gt;geometry&lt;/STRONG&gt;?&amp;nbsp; It's great that is faster, but I do not understand how it is working.&lt;/P&gt;&lt;P&gt;Any other tips to improve the Arcade speed when working with a Rest Service would be great.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 09 Sep 2022 21:31:03 GMT</pubDate>
    <dc:creator>RyanBohan</dc:creator>
    <dc:date>2022-09-09T21:31:03Z</dc:date>
    <item>
      <title>Improved Arcade Speed for Intersects with FeatureSetByName - Large Datasets</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/improved-arcade-speed-for-intersects-with/m-p/1211288#M47808</link>
      <description>&lt;P&gt;I have a parcel pop-up and would like to include Flood Zone information from the FEMA Rest Service&lt;/P&gt;&lt;P&gt;The&amp;nbsp;&lt;A href="https://hazards.fema.gov/gis/nfhl/rest/services/public/NFHL/MapServer/28/" target="_self"&gt;FEMA Rest Service&lt;/A&gt;&amp;nbsp;is huge&amp;nbsp;&lt;SPAN&gt;3,981,995 records, and seems to slow down when demand peaks, taking up to a minute to return.&amp;nbsp; I am trying to optimized&amp;nbsp;my arcade&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;var Overlay = Intersects(FeatureSetByName($map,"NFHL - Flood Hazard Zones",['FLD_ZONE'],&lt;STRONG&gt;true&lt;/STRONG&gt;),$feature);&lt;/P&gt;&lt;P&gt;It was suggested to &lt;STRONG&gt;exclude geometry.&lt;/STRONG&gt;&amp;nbsp; This seems to work, and goes much faster.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;var Overlay = Intersects(FeatureSetByName($map,"NFHL - Flood Hazard Zones",['FLD_ZONE'],&lt;STRONG&gt;false&lt;/STRONG&gt;),$feature);&lt;/P&gt;&lt;P&gt;How does the &lt;STRONG&gt;Intersects&lt;/STRONG&gt; work with out the &lt;STRONG&gt;geometry&lt;/STRONG&gt;?&amp;nbsp; It's great that is faster, but I do not understand how it is working.&lt;/P&gt;&lt;P&gt;Any other tips to improve the Arcade speed when working with a Rest Service would be great.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2022 21:31:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/improved-arcade-speed-for-intersects-with/m-p/1211288#M47808</guid>
      <dc:creator>RyanBohan</dc:creator>
      <dc:date>2022-09-09T21:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: Improved Arcade Speed for Intersects with FeatureSetByName - Large Datasets</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/improved-arcade-speed-for-intersects-with/m-p/1211295#M47809</link>
      <description>&lt;P&gt;When the code is executed, it &lt;A href="https://developers.arcgis.com/rest/services-reference/enterprise/query-feature-service-layer-.htm" target="_blank"&gt;submits a query&lt;/A&gt; to the service's REST endpoint. When you query a service, you can use a geometry to subset your results, which is what &lt;STRONG&gt;Intersect&lt;/STRONG&gt; is doing. This is quite different from your query's &lt;STRONG&gt;returnGeometry&lt;/STRONG&gt; parameter being set to &lt;STRONG&gt;True&lt;/STRONG&gt;, which is what that last &lt;STRONG&gt;true&lt;/STRONG&gt; in the featureset function is doing.&lt;/P&gt;&lt;P&gt;If I recall, submitting a spatial relationship with the query relies on your layer's spatial index and happens on the server side, so it's able to perform fairly quickly. Returning the geometry requires that each individual feature needs to be returned as a &lt;STRONG&gt;Geometry&lt;/STRONG&gt; object to your map. Especially for large-feature layers like the Flood Hazard Zones, that requires a &lt;EM&gt;lot &lt;/EM&gt;of data to be transmitted.&lt;/P&gt;&lt;P&gt;Anything you can do to limit the amount of data passing back and forth from other endpoints will improve things. You can take a look at your browser's Network tab to see what requests it's sending, and the volume of data being exchanged.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2022 21:53:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/improved-arcade-speed-for-intersects-with/m-p/1211295#M47809</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2022-09-09T21:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: Improved Arcade Speed for Intersects with FeatureSetByName - Large Datasets</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/improved-arcade-speed-for-intersects-with/m-p/1211325#M47811</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/363906"&gt;@jcarlson&lt;/a&gt;&amp;nbsp;your explanation makes sense.&amp;nbsp; You are correct it is much faster when the geometry is excluded.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was getting the input and output confused.&amp;nbsp; The query do the intersection, and the part in blue is the&amp;nbsp; results.&amp;nbsp; As my arcade as no further need for the geometry no reason to return it, so &lt;STRONG&gt;False&lt;/STRONG&gt; would be quicker.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RyanBohan_0-1663001317786.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/50947i6E5643269114FAA2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RyanBohan_0-1663001317786.png" alt="RyanBohan_0-1663001317786.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thank you!&amp;nbsp; I think I get it now&lt;/P&gt;</description>
      <pubDate>Mon, 12 Sep 2022 16:54:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/improved-arcade-speed-for-intersects-with/m-p/1211325#M47811</guid>
      <dc:creator>RyanBohan</dc:creator>
      <dc:date>2022-09-12T16:54:31Z</dc:date>
    </item>
  </channel>
</rss>

