laptop and a wrench

Bug

Performance degradation is encountered in ArcGIS API for JavaScript 4.x when a large dynamic map service layer referencing a query layer is added to a new map.

Last Published: January 4, 2019 ArcGIS GIS Server
Bug ID Number BUG-000118425
SubmittedNovember 28, 2018
Last ModifiedJune 5, 2024
Applies toArcGIS GIS Server
Version found10.4.1
Operating SystemN/A
Operating System VersionN/A
StatusWill Not Be Addressed

Additional Information

The issue happens on the server end. There are no plans on addressing it in ArcGIS API for JavaScript.

Workaround

When performing a query with the goal of returning a count of features, a possible workaround is to place the following JSON in the in the outStatistics (Output Statistics) parameter at REST while returnCountOnly remains false: [{              "statisticType": "count",              "onStatisticField": "ObjectID",              "outStatisticFieldName": "OIDs"}]This method results in the query results being returned in under 1 second.The Javascript API should use the outStatistics parameter instead of returnCountOnly when retrieving a count of features in a layer upon adding the FeatureLayer to a map.

Steps to Reproduce

Bug ID: BUG-000118425

Software:

  • ArcGIS GIS Server

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options