<?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: ArcGIS 4.2x now much slower to fetch and draw service layers with millions of records in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-4-2x-now-much-slower-to-fetch-and-draw/m-p/1153584#M76654</link>
    <description>&lt;P&gt;FYI&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/6031"&gt;@RyanSutcliffe&lt;/a&gt;, we talked with the server team, and apparently this happens on some backends where the count can unexpectedly take a very long time to return. They've added a different API we can use to get the approximate count, and we're evaluating whether we can move to that for 4.24 (not this next release, but the following one).&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 14 Mar 2022 22:16:26 GMT</pubDate>
    <dc:creator>mgeorge</dc:creator>
    <dc:date>2022-03-14T22:16:26Z</dc:date>
    <item>
      <title>ArcGIS 4.2x now much slower to fetch and draw service layers with millions of records</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-4-2x-now-much-slower-to-fetch-and-draw/m-p/1136687#M76064</link>
      <description>&lt;P&gt;Looking at moving from 4.19 to 4.21+ and ran into a problem loading &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html" target="_self"&gt;FeatureLayers&lt;/A&gt; from our backend ArcGIS Server REST MapServices. At 4.21 loading point layers with over a few million records becomes really slow on initial load. The time from initial request to draw went from a couple seconds or less to 30+ seconds.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;When I watch the network traffic&amp;nbsp;I can see that as of 4.21 there is now an initial fetch for the count of records with params like so:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;`returnIdsOnly=true&amp;amp;returnCountOnly=true&amp;amp;spatialRel=esriSpatialRelIntersects&amp;amp;where=1%3D1`&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is returning the count of the records in the service layer and it consistently takes our server over 30 seconds to process.&lt;/P&gt;&lt;P&gt;The &lt;A href="https://developers.arcgis.com/javascript/latest/4.21/#enterprise-point-featurelayers" target="_self"&gt;release notes for ArcGIS 4.21&lt;/A&gt; say:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;At&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/4.19/#performance-improvements" target="_blank" rel="noopener"&gt;version 4.19&lt;/A&gt;&lt;SPAN&gt;, we improved the performance of point FeatureLayers hosted on ArcGIS Online. Version 4.21 brings these changes to ArcGIS Enterprise point services.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;It looks like this fetch of the count is part of a trick to try to speed up subsequent requests. As an aside we haven't noticed any improvement for any of our datasets/apps on subsequent fetches/draws either.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some details:&lt;/P&gt;&lt;P&gt;Our point layer(s) come from an SDE Database Feature Class layer. The MapService is not cached. ESRI Canada technical support have confirmed they have been able to reproduce this problem with other large datasets of their own.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For our large datasets our use case is that these layers are configured to only draw at a very large scale where a couple thousand records draw at a time. Note that in the &lt;A href="https://developers.arcgis.com/javascript/latest/4.19/#performance-improvements" target="_self"&gt;use case that ESRI demonstrates in their 4.19 release notes&lt;/A&gt;&amp;nbsp;shows all the data drawn at once at full scale. I think their trick might provide advantages in that use case at the detriment of my own.&lt;/P&gt;&lt;P&gt;I would like this performance improvement approach to be opt-in in the API (Feature Idea) since ESRI won't consider it a bug.&lt;/P&gt;&lt;P&gt;I am also interested if users here know of tricks to speed up getting the recordCount of a large dataset via REST.&amp;nbsp; For example I can get the recordCount via a direct SQL request to the database table in less than 2 seconds. Why does it take suddenly 30 seconds for ArcGIS Server? Is there some trick or optimization to cache this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jan 2022 01:23:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-4-2x-now-much-slower-to-fetch-and-draw/m-p/1136687#M76064</guid>
      <dc:creator>RyanSutcliffe</dc:creator>
      <dc:date>2022-01-25T01:23:29Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS 4.2x now much slower to fetch and draw service layers with millions of records</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-4-2x-now-much-slower-to-fetch-and-draw/m-p/1136692#M76065</link>
      <description>&lt;P&gt;Related Idea post for the &lt;STRIKE&gt;fix&amp;nbsp;&amp;nbsp;&lt;/STRIKE&gt; feature improvement!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-api-for-javascript-ideas/fix-4-2x-so-that-initial-requests-for-large-layers/idi-p/1136691" target="_blank"&gt;https://community.esri.com/t5/arcgis-api-for-javascript-ideas/fix-4-2x-so-that-initial-requests-for-large-layers/idi-p/1136691&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jan 2022 01:19:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-4-2x-now-much-slower-to-fetch-and-draw/m-p/1136692#M76065</guid>
      <dc:creator>RyanSutcliffe</dc:creator>
      <dc:date>2022-01-25T01:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS 4.2x now much slower to fetch and draw service layers with millions of records</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-4-2x-now-much-slower-to-fetch-and-draw/m-p/1136698#M76067</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/6031"&gt;@RyanSutcliffe&lt;/a&gt;.&amp;nbsp;Hmm, a MapServer taking 30+ seconds to respond to a count query definitely would cause an issue with the snapshot logic. Would like to take a look at the service and see what's going on. I take it that if you have millions of records, you are probably using a definitionExpression? If a count query without a definitionExpression is massively faster for large MapServer datasets, we potentially may need to add a special path for MapServer to avoid querying the count with it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can currently disable the snapshot logic with the&amp;nbsp;&lt;EM&gt;featurelayer-snapshot-enabled&amp;nbsp;&lt;/EM&gt;flag. See&amp;nbsp;&lt;A href="https://codepen.io/matt9222/pen/poWMzde" target="_blank" rel="noopener"&gt;Disable snapshot (codepen.io)&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would highly recommend adding some kind of cache in front of the service though when you have millions of records.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jan 2022 01:53:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-4-2x-now-much-slower-to-fetch-and-draw/m-p/1136698#M76067</guid>
      <dc:creator>mgeorge</dc:creator>
      <dc:date>2022-01-25T01:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS 4.2x now much slower to fetch and draw service layers with millions of records</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-4-2x-now-much-slower-to-fetch-and-draw/m-p/1137229#M76096</link>
      <description>&lt;P&gt;I just confirmed the dojoConfig object change gets around the problem with the "snapshot logic" for my service(s).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; &amp;lt;script&amp;gt;
       var dojoConfig = {
        has: {
           "featurelayer-snapshot-enabled": 0
        }
      }
    &amp;lt;/script&amp;gt;
    &amp;lt;script src="https://js.arcgis.com/4.22/"&amp;gt;&amp;lt;/script&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That solves my problem with this being a blocker for us to move to `4.2x` so thank you &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/300815"&gt;@mgeorge&lt;/a&gt;&amp;nbsp;for that! That's a big relief to our team.&lt;/P&gt;&lt;P&gt;We're interested in understanding why this feature doesn't work for us.&amp;nbsp;&lt;BR /&gt;- we don't have a definitionExpression on the layer. We only draw the layer at a scale of ~1:4k or larger. In most cases, the point layers are evenly spaced in a grid at a certain interval. So we don't have to worry about a user zooming to an area with a too-high count of records that will cause the server performance problems.&lt;BR /&gt;- The services are not publicly available so I cannot share a link. If you'd like to see the data, I can send a scrubbed representative example in shapefile form for your interest. PM me for details and we can make arrangements.&lt;/P&gt;&lt;P&gt;Your point about caching the service is taken and I'm looking at that also. There are some tricks that that introduces for us with updating the data that means its a bit more than trivial effort.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jan 2022 01:54:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-4-2x-now-much-slower-to-fetch-and-draw/m-p/1137229#M76096</guid>
      <dc:creator>RyanSutcliffe</dc:creator>
      <dc:date>2022-01-26T01:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS 4.2x now much slower to fetch and draw service layers with millions of records</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-4-2x-now-much-slower-to-fetch-and-draw/m-p/1137230#M76097</link>
      <description>&lt;P&gt;[Going to mark the question as answered for future users. If an answer comes along that leads to a way to enable this &lt;SPAN&gt;"snapshot logic"&amp;nbsp;&lt;/SPAN&gt;feature and have it not cause problems for our large datasets I'll switch to that.]&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jan 2022 01:57:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-4-2x-now-much-slower-to-fetch-and-draw/m-p/1137230#M76097</guid>
      <dc:creator>RyanSutcliffe</dc:creator>
      <dc:date>2022-01-26T01:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS 4.2x now much slower to fetch and draw service layers with millions of records</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-4-2x-now-much-slower-to-fetch-and-draw/m-p/1153584#M76654</link>
      <description>&lt;P&gt;FYI&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/6031"&gt;@RyanSutcliffe&lt;/a&gt;, we talked with the server team, and apparently this happens on some backends where the count can unexpectedly take a very long time to return. They've added a different API we can use to get the approximate count, and we're evaluating whether we can move to that for 4.24 (not this next release, but the following one).&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Mar 2022 22:16:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-4-2x-now-much-slower-to-fetch-and-draw/m-p/1153584#M76654</guid>
      <dc:creator>mgeorge</dc:creator>
      <dc:date>2022-03-14T22:16:26Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS 4.2x now much slower to fetch and draw service layers with millions of records</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-4-2x-now-much-slower-to-fetch-and-draw/m-p/1167641#M77126</link>
      <description>&lt;P&gt;For the &lt;A href="https://community.esri.com/t5/arcgis-api-for-javascript-questions/arcgis-4-2x-now-much-slower-to-fetch-and-draw/m-p/1137229/highlight/true#M76096" target="_self"&gt;answer above&lt;/A&gt;, which uses `dojoConfig` to turn off this feature, is there a trick to be able to do the equivalent if we are using es6/esm imports and "&lt;SPAN&gt;"@arcgis/core"?&amp;nbsp;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/300815"&gt;@mgeorge&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I am assuming no but wanted to check to be certain.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2022 18:24:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-4-2x-now-much-slower-to-fetch-and-draw/m-p/1167641#M77126</guid>
      <dc:creator>RyanSutcliffe</dc:creator>
      <dc:date>2022-04-25T18:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS 4.2x now much slower to fetch and draw service layers with millions of records</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-4-2x-now-much-slower-to-fetch-and-draw/m-p/1179562#M77572</link>
      <description>&lt;P&gt;Sorry&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/6031"&gt;@RyanSutcliffe&lt;/a&gt; for the late rely. esriConfig should work the same as dojoConfig, they're aliases for one another. I would probably get in contact with support, they should be able to help setup a repro.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 17:58:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-4-2x-now-much-slower-to-fetch-and-draw/m-p/1179562#M77572</guid>
      <dc:creator>mgeorge</dc:creator>
      <dc:date>2022-06-02T17:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS 4.2x now much slower to fetch and draw service layers with millions of records</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-4-2x-now-much-slower-to-fetch-and-draw/m-p/1183334#M77702</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/300815"&gt;@mgeorge&lt;/a&gt;&amp;nbsp;I posted this here after ESRI canada stated that there was no workaround or fix to my problem. In fact after you answered the question I alerted them to the dojoConfig fix approach you posted. They warned me that, while this might work, the approach "was not supported."&lt;BR /&gt;I just tried the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html" target="_self"&gt;esriConfig&lt;/A&gt; approach (swapping it for dojoConfig). I can see the `.has` property on the workers.loaderConfig property of esriConfig exists.&amp;nbsp; However setting it as:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;esriConfig.workers.loaderConfig.has = {
   ...esriConfig.workers.loaderConfig.has, //keep any settings already there
   "featurelayer-snapshot-enabled": 0,
};&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This does not seem to have any effect in my testing just now although I am testing using loadModules (esriLoader) approach, not es6&amp;amp;arcgis/core.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 22:43:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-4-2x-now-much-slower-to-fetch-and-draw/m-p/1183334#M77702</guid>
      <dc:creator>RyanSutcliffe</dc:creator>
      <dc:date>2022-06-15T22:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS 4.2x now much slower to fetch and draw service layers with millions of records</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-4-2x-now-much-slower-to-fetch-and-draw/m-p/1185850#M77760</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/6031"&gt;@RyanSutcliffe&lt;/a&gt;&amp;nbsp;sorry for the slow response. It needs to be set on the main config, not the workers config. I'm not too familiar with how things are wired up for the npm build, let me see if I can find out&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2022 00:17:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-4-2x-now-much-slower-to-fetch-and-draw/m-p/1185850#M77760</guid>
      <dc:creator>mgeorge</dc:creator>
      <dc:date>2022-06-24T00:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS 4.2x now much slower to fetch and draw service layers with millions of records</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-4-2x-now-much-slower-to-fetch-and-draw/m-p/1185853#M77761</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/6031"&gt;@RyanSutcliffe&lt;/a&gt;, just talked to the dev for the npm build. It should work the same way. You just need to include&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;script&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;window&lt;/SPAN&gt;.&lt;SPAN class=""&gt;dojoConfig&lt;/SPAN&gt; &lt;SPAN class=""&gt;=&lt;/SPAN&gt; { &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; has&lt;/SPAN&gt;: { &lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;"featurelayer-snapshot-enabled"&lt;/SPAN&gt;: &lt;SPAN class=""&gt;0&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt; } &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;} &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN class=""&gt;script&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;before the API gets loaded.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2022 00:42:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-4-2x-now-much-slower-to-fetch-and-draw/m-p/1185853#M77761</guid>
      <dc:creator>mgeorge</dc:creator>
      <dc:date>2022-06-24T00:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS 4.2x now much slower to fetch and draw service layers with millions of records</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-4-2x-now-much-slower-to-fetch-and-draw/m-p/1269113#M80594</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/6031"&gt;@RyanSutcliffe&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I am in search of a service that exhibits the behavior you describe. I haven't been able to reproduce the behavior your described above.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please give me more details on your map service. What version of the server are you using? Would it be possible to give me a contact info of the support analyst who was able to reproduce this issue?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2023 20:08:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-4-2x-now-much-slower-to-fetch-and-draw/m-p/1269113#M80594</guid>
      <dc:creator>UndralBatsukh</dc:creator>
      <dc:date>2023-03-17T20:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS 4.2x now much slower to fetch and draw service layers with millions of records</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-4-2x-now-much-slower-to-fetch-and-draw/m-p/1269753#M80611</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/53756"&gt;@UndralBatsukh&lt;/a&gt; , I sent you, via DM, the ESRI Support Case #. There are some details on our setup in that if you are able to access. Our services aren't public so I can't share a link. I haven't looked at this in a while as the dojoConfig workaround allowed us to get around the issue.&lt;BR /&gt;[update: checked if this behavior still happens this morning at 4.25. It does. Details:&lt;BR /&gt;- load a MapService's point layer (not cached) into a FeatureLayer. Layer configured not to be visible until 1:2k but the count query will run when layer is loaded and fetch the count for the layer (in this case about 4million records). This fetch takes about 20s.]&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2023 16:52:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-4-2x-now-much-slower-to-fetch-and-draw/m-p/1269753#M80611</guid>
      <dc:creator>RyanSutcliffe</dc:creator>
      <dc:date>2023-03-21T16:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS 4.2x now much slower to fetch and draw service layers with millions of records</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-4-2x-now-much-slower-to-fetch-and-draw/m-p/1276062#M80776</link>
      <description>&lt;P&gt;I just realized that I seem to be sometimes having the same problem when creating a SceneView and the above doesn't fix it there. I've &lt;A href="https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-disable-snapshot-mode-in-3d-scenes/td-p/1276061" target="_self"&gt;created a new Post&lt;/A&gt; for help with this.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2023 03:43:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-4-2x-now-much-slower-to-fetch-and-draw/m-p/1276062#M80776</guid>
      <dc:creator>RyanSutcliffe</dc:creator>
      <dc:date>2023-04-06T03:43:43Z</dc:date>
    </item>
  </channel>
</rss>

