xRoute performance differences with Feature Layers
Posted: Mon Oct 06, 2025 2:22 pm
Hi,
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 also executed the same request using your PTV Run Request Runner tool and observed the same significant difference in execution time with and without feature layers, which confirms that the delay is coming from the xServer side.
I would like to ask:
1. Is it expected that the calculation time increases so significantly when feature layers are enabled?
2. 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?
3. Are there any recommendations or performance optimization tips you can provide for this kind of request?
I'm providing you the full SOAP request (it includes vehicle profile, geometry options, waypoints, and route options).
Thank you in advance for your feedback!
Best regards,
Irena
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 also executed the same request using your PTV Run Request Runner tool and observed the same significant difference in execution time with and without feature layers, which confirms that the delay is coming from the xServer side.
I would like to ask:
1. Is it expected that the calculation time increases so significantly when feature layers are enabled?
2. 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?
3. Are there any recommendations or performance optimization tips you can provide for this kind of request?
I'm providing you the full SOAP request (it includes vehicle profile, geometry options, waypoints, and route options).
Thank you in advance for your feedback!
Best regards,
Irena