Bug report #5523
Deleting columns from the Attribute Table - QGIS very slow
|Affected QGIS version:||master||Regression?:||No|
|Operating System:||Windows 7||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||15121|
QGIS takes 5 minutes to delete 10 columns, while the Table Manager plugin does this in 5 seconds.
#5 Updated by Giovanni Manghi over 8 years ago
Filipe Dias wrote:
It happens with all shapefiles. The time that QGIS takes to delete a group columns increases exponentially with the number of selected columns.
it can be a qgis problem, or not. Deleting columns from the vector properties uses OGR, while table manager doesn't. It would be needed to make a test using directly ogr and see if the behaviour is the same.
#6 Updated by Giovanni Manghi over 8 years ago
- Status changed from Open to Feedback
I cannot confirm this, testing on qgis-dev, and a 240000 records table, after deleting 10 columns it took just a few seconds (after hitting "save" when toggling off editing). Can you please test with a different vector and/or on another machine?
#8 Updated by Giovanni Manghi over 8 years ago
- Subject changed from Deleting columns from the Attribute Table - QGIS takes more than 5 minutes to delete 10 fields to Deleting columns from the Attribute Table - QGIS very slow
- Status changed from Feedback to Open
There are cases where it seems even to freeze.
#11 Updated by Pieter Roggemans over 8 years ago
Example file can be found here: