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.
Would it be possible to cache this number? It will only change when the data is updated nightly.
Thanks in advance! -Chris