Feature request #14364
Add an option to avoid querying data to collect extents
|Pull Request or Patch supplied:||No||Resolution:||fixed/implemented|
|Easy fix?:||No||Copied to github as #:||22347|
QGIS server has severe overhead when initializing qgis project cache when getting extent of layers in a project when data are postgis views.
For big databases, this can be a real blocker (here 24s at first wms request, 7s for next queries.
This has been discussed here: performance questions
If this is possible with data providers, having an option in OWS project properties to ignore extent from data and trust project extent would be a great solution. This is how mapserver works I guess.
#1 Updated by aperi2007 - almost 4 years ago
Just to explain how work mapserver:
The mapserver automatically retrieve the extend when it is not defined. To avoid this in mapserver is necessary to set the EXTENT parameter al layer level.
So the Mapserver avoid to calculate it.
Actually in the qgis is possible to set the EXTENT only at project level.
Perhaps an enhance could go in the direction to set manually the extent also at layer level.