AnsweredAssumed Answered

FeatureLayer requesting full layer counts before rendering

Question asked by e0179927 on Oct 29, 2018
Latest reply on Oct 30, 2018 by e0179927

I have an ESRI enterprise server with a layer service containing 4.6million features.  Querying the features is super fast and not an issue at all.


However, when the FeatureLayer (js api) is loaded, it requests a full count of the layer's features, taking between 1-2 minutes to complete.  This is happening even if I am zoomed to an area with 1000-2000 features.


Once it is done, the map is fast and responsive.  Can I disable this in the javascript, or on the server somehow?  What is the reason for the client to know the full count of the layer?  


Would it be possible to cache this number?  It will only change when the data is updated nightly.


Thanks in advance!  -Chris