Hi there.
We used Mapimage Layer so far. Now we tried to use Feature Layer instead, but we have an issue with the count request, which seems to be automatically generated from ESRI with followed Query Parameters:
So the result of the count is 309'947 and the request takes about 12 secondes.
This Request is made everytime first, before the important requests goes out with the pbf results.
So for 12 seconds, the user is waiting.
Our Service is based on a referenced data store to a View on an Oracle database.
We analyzed the query from ESRI on Oracle:
"SELECT SG_POINT, ID
FROM (SELECT * FROM VIEWNAME) a
WHERE (1 = 1 AND (FIELD_ONE = 1) AND (FIELD_TWO= 1))"
So it's clear that it's slow, when ESRI takes all the spatial objects instead of a select count(*).?!?
Now the question is: can we deactivate this automated count or is there another solution/workaround? For me this seems to be a bug or a bad solution because of two points:
- no geometry filter in count request
- get the whole data from origin data source (oracle db), before count is made by esri, instead of request count directly from data source
JavaScript API 4.22
ArcGIS Enterprise 10.8.1