-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deleting columns from the Attribute Table - QGIS very slow #15121
Comments
Author Name: Giovanni Manghi (@gioman) it happens with all vectors? just shapefiles? also other datatypes (postgis, spatialite. etc.)? Eventually add sample data. |
Author Name: Filipe Dias (@fsdias) Just shapefiles but I cant add the original data, since its confidential.
|
Author Name: Giovanni Manghi (@gioman) Filipe Dias wrote:
so it happens just with a specific shapefile or it happens with any shapefile? |
Author Name: Filipe Dias (@fsdias) It happens with all shapefiles. The time that QGIS takes to delete a group columns increases exponentially with the number of selected columns. |
Author Name: Giovanni Manghi (@gioman) Filipe Dias wrote:
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. |
Author Name: Giovanni Manghi (@gioman) 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?
|
Author Name: Giovanni Manghi (@gioman) With you dataset I can confirm the issue. On Windows especially it takes a lot of time after hitting the "save" button. |
Author Name: Giovanni Manghi (@gioman) There are cases where it seems even to freeze.
|
Author Name: Pieter Roggemans (@theroggy) Same here. Deleting colums takes minutes, first a progress bar per column, about a minute per column I think for a +- 130.000 shape, then when saving another minute... |
Author Name: Jürgen Fischer (@jef-n) Giovanni Manghi wrote:
which dataset is that? |
Author Name: Pieter Roggemans (@theroggy) Example file can be found here: |
Author Name: Giovanni Manghi (@gioman)
The original reported sent it to me privately but it is not possible to share it here, meanwhile the attached dataset should help anyway to replicate the issue. |
Author Name: Jürgen Fischer (@jef-n) Fixed in changeset "7e6924820dd5c3f30c2f03ee7c9319c45476b905".
|
Author Name: Pieter Roggemans (@theroggy) Thanks for the very quick reactions!!! |
Author Name: Filipe Dias (@fsdias)
Original Redmine Issue: 5523
Affected QGIS version: master
Redmine category:vectors
QGIS takes 5 minutes to delete 10 columns, while the Table Manager plugin does this in 5 seconds.
The text was updated successfully, but these errors were encountered: