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.
上次发布: January 4, 2019ArcGIS GIS Server
漏洞 ID 编号
BUG-000118425
已提交
November 28, 2018
上次修改时间
June 5, 2024
适用范围
ArcGIS GIS Server
找到的版本
10.4.1
操作系统
N/A
操作系统版本
N/A
状态
Will Not Be Addressed
开发团队已考虑过该问题或请求,并决定不会解决该问题。 问题的“其他信息”部分可能包含进一步说明。
附加信息
The issue happens on the server end. There are no plans on addressing it in ArcGIS API for JavaScript.
解决办法
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.