We are currently working on some processes which are developed to use the calculateRoute request against xServer2, and we’ve noticed a significant difference in execution time depending on whether feature layers are enabled.
For a route with +/-19 tour stops, the overall processing time is around 45 seconds, out of which the xServer execution time alone is about 34 seconds. The rest is client-side processing.
However, when we disable the feature layers, the xServer execution time decreases drastically.
In our current setup, we are using the following feature layers:
- PTV_TruckAttributes (this one is important for us since we want to include the vehicle parameters and run the calculation based on those values)
- PTV_PreferredRoutes (this one can be disabled and it is not important for all requests)
- PTV_TrafficIncidents (this one is also important for us, since we want to provide information about traffic jams and incidents relevant to the selected tour date)
I would like to ask:
- Is it expected that the calculation time increases so significantly when feature layers are enabled?
- Is it possible to separate the data in PTV_TrafficIncidents - for example, to retrieve only the data for the current period, or to use different parameters for traffic jams and historical data?
- Are there any recommendations or performance optimization tips you can provide for this kind of request?
Thank you in advance for your feedback!
Best regards,
Irena