Hey guys,
I am having a weird scenario after upgrading to .NET 4.8. We are still using ArcGIS Runtime SDK 10.2.7. We are looping through our map layers and executing a query task, but the first querytask always takes 15 seconds and all of the next querytasks just runs under 1 or 2 seconds. We are using IdentityManager for the authentication.
Query Task Code:
QueryTask task = new QueryTask(new Uri(url));
query.OutFields.Add("*");
query.ReturnGeometry = true;
Task<QueryResult> queryTask = task.ExecuteAsync(query);
QueryResult result = await queryTask;
What version of .NET did you upgrade from where it didn't happen? Was this the only change you made?
(just on a side note, the v10.x releases retired four years ago, and we encourage you port to the 200.x releases if you can)
What basemap are you using?
If it's imagery take a look at this old post:
https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/slow-laggy-performance-when-doing...
Query/Identify tasks will hit the image basemap and take a while to respond... We've had to specifically exclude that layer from query tasks to work around that issue for years now.