-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Saving edits on larger vector layers is slow #53043
Labels
Bug
Either a bug report, or a bug fix. Let's hope for the latter!
Data Provider
Related to specific vector, raster or mesh data providers
Comments
rouault
added a commit
to rouault/QGIS
that referenced
this issue
Sep 17, 2023
…nt' when updating all features (fixes qgis#53043) On the test case provided in qgis#53043: Before: ``` Start layer.getFeatures() without update layer.getFeatures() found 591904 features and took 0:00:06.561681 Start loop to update features Loop took 0:00:07.583642 Commitchanges took 0:00:33.213708 ``` After: ``` Start layer.getFeatures() without update layer.getFeatures() found 591904 features and took 0:00:06.572171 Start loop to update features Loop took 0:00:07.807320 Commitchanges took 0:00:03.322783 ``` So a 10x times improvement
rouault
added a commit
to rouault/QGIS
that referenced
this issue
Sep 17, 2023
…nt' when updating all features (fixes qgis#53043) On the test case provided in qgis#53043: Before: ``` Start layer.getFeatures() without update layer.getFeatures() found 591904 features and took 0:00:06.561681 Start loop to update features Loop took 0:00:07.583642 Commitchanges took 0:00:33.213708 ``` After: ``` Start layer.getFeatures() without update layer.getFeatures() found 591904 features and took 0:00:06.572171 Start loop to update features Loop took 0:00:07.807320 Commitchanges took 0:00:03.322783 ``` So a 10x times improvement
rouault
added a commit
to rouault/QGIS
that referenced
this issue
Sep 17, 2023
…nt' when updating all features (fixes qgis#53043) On the test case provided in qgis#53043: Before: ``` Start layer.getFeatures() without update layer.getFeatures() found 591904 features and took 0:00:06.561681 Start loop to update features Loop took 0:00:07.583642 Commitchanges took 0:00:33.213708 ``` After: ``` Start layer.getFeatures() without update layer.getFeatures() found 591904 features and took 0:00:06.572171 Start loop to update features Loop took 0:00:07.807320 Commitchanges took 0:00:03.322783 ``` So a 10x times improvement
rouault
added a commit
to rouault/QGIS
that referenced
this issue
Sep 18, 2023
…nt' when updating all features (fixes qgis#53043) On the test case provided in qgis#53043: Before: ``` Start layer.getFeatures() without update layer.getFeatures() found 591904 features and took 0:00:06.561681 Start loop to update features Loop took 0:00:07.583642 Commitchanges took 0:00:33.213708 ``` After: ``` Start layer.getFeatures() without update layer.getFeatures() found 591904 features and took 0:00:06.572171 Start loop to update features Loop took 0:00:07.807320 Commitchanges took 0:00:03.322783 ``` So a 10x times improvement
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!
Data Provider
Related to specific vector, raster or mesh data providers
What is the bug or the crash?
Saving edits on larger vector layers is slow.
Steps to reproduce the issue
The larger the file, the slower the save...
I also wrote a pyqgis script (see below) to do some tests around this behaviour, and the speed of the storage being used indeed seems to have quite an impact on the time "commitchanges" takes:
Versions
The python script was tests on a conda installation of qgis on a windows 10 computer:
The desktop test was on a different windows 10 computer:
Supported QGIS version
New profile
Additional context
No response
The text was updated successfully, but these errors were encountered: