AnsweredAssumed Answered

ArcGIS Server - Define a default workspace for every service instances

Question asked by DemersM on Aug 7, 2018
Latest reply on Sep 4, 2018 by DemersM

Hi,

 

I have some geoprocessing services published to ArcGIS Server. I have noticed that every time a request is made, a great amount of time (1 to 3 seconds) is needed to establish the connection to the Geodatabase Entreprise workspace.

 

For instance, if I use a SearchCursor in a GP Service, a lot of time is spent setting arcpy.env.workspace. It's not faster to define the workspace in the SearchCursor in_table parameter.

 

I would like to know if it's possible to define a default workspace at the service instances level in order that when a service instance is created, the connection to a Geodatabase Entreprise workspace is made and kept open until the instance is closed?

 

Thank you!

Outcomes