[GIS] Slowness query – ArcGIS Server

arcgis-10.2arcgis-serverenterprise-geodatabase

A viewer is being developed with the Api Javascript of Esri 3.21 and several queries are made through QueryTask to some services that we have published in ArcGIS Server. It has been observed that the service response is somewhat slow.

For example, to perform this query on my machine (Window 8.1, Intel(R) Core(TM) i5-5200U CPU @2.20GHz) Google Chrome(VersiĆ³n 61.0.3163.100):

https://186.3.64.173:6443/arcgis/rest/services/ServiciosDePrueba/RecaudacionDeuda/MapServer/2/query?where=PersonasEm%3E0&text=&objectIds=&time=&geometry=&geometryType=esriGeometryEnvelope&inSR=&spatialRel=esriSpatialRelIntersects&relationParam=&outFields=clavepre%2C+emitido%2C+pagado&returnGeometry=true&returnTrueCurves=false&maxAllowableOffset=&geometryPrecision=&outSR=&returnIdsOnly=false&returnCountOnly=false&orderByFields=&groupByFieldsForStatistics=&outStatistics=&returnZ=false&returnM=false&gdbVersion=&returnDistinctValues=false&resultOffset=&resultRecordCount=&f=html

The query takes approximately 30 seconds and the records returned are 85,100 and the total service entities are less than 101,000.

We do not know if you can solve the problem in ArcGIS Server configuration to optimize this type of queries.

Best Answer

  1. If you are using esri products in an enterprise project,You should first know about product arcitecture.You can estimate, latency, network, hardwares and softwares needs with the standard methods of esri.
  2. In the same situation, SDE has the best performance than other Geodatabases(Reference).
  3. Many parameters are affected to the performance:CPU,RAM, Hardware ,Network,Concurrent users, Database type, Database Design, Number of records in query result,software version( ArcGIS 9x,10.0,10.1, ... ).
  4. If you are using SDE service, stop sde service and use direct connection method.
  5. Use spatial index.
  6. Improve MXD performance. With these methods you can use more ram and cpu for another processes.

Arcgis for server is very different than other GIS servers.If you want to use ArcGIS for server, try to learn the architecture of esri products.