Hello all,
I am working on a custom web application using ArcGIS 4.19. We are dealing with some large data sets, often 20,000 features, and we occasionally want to be able to apply edits or delete them in a batch process.
I'm using the applyEdits() function from the FeatureLayer, however because of the large size of these requests, passing all 20,000 features at once causes the API to time out and fail. To get around this, I've been able to take the request and chunk them up, making calls to applyEdits() with 500 features at a time.
However, this strategy ends up being incredibly slow, mostly because ArcGIS attempted to redraw the layer on map after each call to applyEdits() -- one applyEdits() call results in the map performing 4 or 5 .pbf queries after completion. Normally, that's great behavior and keeps the map properly updated. But in my case, it's just slowing things down and I'd rather refresh the data once all the calls are complete.
Is there any way to tell ArcGIS to not refresh the map with this call? Nothing I could see in the documentation. I could switch to the REST implementation but I'd like to keep the JS API version if possible.
You can see the requests I'm talking about if you watch the network tab when updating features in ArcGIS' applyEdits example: https://developers.arcgis.com/javascript/latest/sample-code/editing-applyedits/
Let me know if you know of any possible work around here.