Skip to content
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

Closed
qgib opened this issue Apr 30, 2012 · 14 comments
Closed

Deleting columns from the Attribute Table - QGIS very slow #15121

qgib opened this issue Apr 30, 2012 · 14 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Vectors Related to general vector layer handling (not specific data formats)

Comments

@qgib
Copy link
Contributor

qgib commented Apr 30, 2012

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.

@qgib
Copy link
Contributor Author

qgib commented Apr 30, 2012

Author Name: Giovanni Manghi (@gioman)


it happens with all vectors? just shapefiles? also other datatypes (postgis, spatialite. etc.)? Eventually add sample data.

@qgib
Copy link
Contributor Author

qgib commented Apr 30, 2012

Author Name: Filipe Dias (@fsdias)


Just shapefiles but I cant add the original data, since its confidential.


  • category_id was configured as Vectors

@qgib
Copy link
Contributor Author

qgib commented Apr 30, 2012

Author Name: Giovanni Manghi (@gioman)


Filipe Dias wrote:

Just shapefiles but I cant add the original data, since its confidential.

so it happens just with a specific shapefile or it happens with any shapefile?

@qgib
Copy link
Contributor Author

qgib commented Apr 30, 2012

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.

@qgib
Copy link
Contributor Author

qgib commented Apr 30, 2012

Author Name: Giovanni Manghi (@gioman)


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.

@qgib
Copy link
Contributor Author

qgib commented May 2, 2012

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?


  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented May 3, 2012

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.

@qgib
Copy link
Contributor Author

qgib commented May 3, 2012

Author Name: Giovanni Manghi (@gioman)


There are cases where it seems even to freeze.


  • subject was 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_id was changed from Feedback to Open

@qgib
Copy link
Contributor Author

qgib commented Jun 11, 2012

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...

@qgib
Copy link
Contributor Author

qgib commented Jun 11, 2012

Author Name: Jürgen Fischer (@jef-n)


Giovanni Manghi wrote:

With you dataset I can confirm

which dataset is that?

@qgib
Copy link
Contributor Author

qgib commented Jun 11, 2012

Author Name: Pieter Roggemans (@theroggy)


Example file can be found here:
https://docs.google.com/open?id=0B-lmgiUm-f0HRWpadzZpNlk4cmM

@qgib
Copy link
Contributor Author

qgib commented Jun 11, 2012

Author Name: Giovanni Manghi (@gioman)


which dataset is that?

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.

@qgib
Copy link
Contributor Author

qgib commented Jun 11, 2012

Author Name: Jürgen Fischer (@jef-n)


Fixed in changeset "7e6924820dd5c3f30c2f03ee7c9319c45476b905".


  • status_id was changed from Open to Closed

@qgib
Copy link
Contributor Author

qgib commented Jun 12, 2012

Author Name: Pieter Roggemans (@theroggy)


Thanks for the very quick reactions!!!

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Vectors Related to general vector layer handling (not specific data formats) labels May 24, 2019
@qgib qgib closed this as completed May 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Vectors Related to general vector layer handling (not specific data formats)
Projects
None yet
Development

No branches or pull requests

1 participant