Bug report #9608
QGIS reads all features to calculate layer extent
| Status: | Closed | ||
|---|---|---|---|
| Priority: | Severe/Regression | ||
| Assignee: | - | ||
| Category: | Vectors | ||
| Affected QGIS version: | master | Regression?: | No | 
| Operating System: | Easy fix?: | No | |
| Pull Request or Patch supplied: | No | Resolution: | |
| Crashes QGIS or corrupts data: | No | Copied to github as #: | 18185 | 
Description
Now QGIS always reads all features of a layer to calculate the extent when the layer is opened.
It is very slow for big layers.
See:
#500116bfe337760a21a6c34ac16073eba5fefe40#diff-106be592650b55ccae79c83eecd15cebR1691
Re-enabling this code, the layer fetch the extent from provider:
QgsRectangle mbr = mDataProvider->extent();
setExtent( mbr );
Associated revisions
vector layer: fix lazy extent calculation (fixes #9608; introduced in 500116bfe)
History
#1
    
    Updated by Giovanni Manghi over 11 years ago
    - Category changed from Browser to Vectors
 
Is this a regression?
#2
    
    Updated by Alvaro Huarte over 11 years ago
    Giovanni Manghi wrote:
Is this a regression?
I think so
#3
    
    Updated by Giovanni Manghi over 11 years ago
    - Priority changed from High to Severe/Regression
 
#4
    
    Updated by Jürgen Fischer over 11 years ago
    - Status changed from Open to Closed
 
Fixed in changeset a1ada3c54ceb9c4c2bf30b4d7afb2e2c70153fb3.