-
-
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
Sorting PostGIS layer in attribute view is extremely slow #16537
Comments
Author Name: Pedro Venâncio (Pedro Venâncio) I confirm, I notice quite a difference, even with layers much smaller than the Nyall. But this only happens when I order a column for the 1st time, that is, clicking on a column header, it takes a long time to do the sorting. After this initial sorting, clicking on the same column to reverse the sort, the change is instantaneous. Closing the attribute table and reopening, the slow pace of the 1st ordination happen again. In 1.8 the ordering is always fast and, in my case, the database is on the machine where I have the QGIS master. This seems limited to PostGIS, it does not happen with the same data in Spatialite or Shapefile. |
Author Name: Giovanni Manghi (@gioman) Pedro Venâncio wrote:
it should be a regression then.
|
Author Name: Matthias Kuhn (@m-kuhn) Fixed in changeset "66fadee8ef4e1fb8863f62a61d25159f23c4eee6".
|
Author Name: Regis Haubourg (@haubourg) Hi Matthias, |
Author Name: Matthias Kuhn (@m-kuhn) Hi Regis, It should be already fixed on master. |
Author Name: Regis Haubourg (@haubourg) OK thanks, let's see tomorrow then. |
Author Name: Nyall Dawson (@nyalldawson)
Original Redmine Issue: 7609
Affected QGIS version: master
Redmine category:vectors
In current master sorting a PostGIS table by an attribute is very slow. The same table (containing ~ 1 million rows) exported to a shp file sorts in around 10 seconds, but the PostGIS version never finishes and endlessly spams the console with:
Debug: src/providers/postgres/qgspostgresconn.cpp: 804: (openCursor) Starting read-only transaction
Debug: src/providers/postgres/qgspostgresconn.cpp: 818: (closeCursor) Committing read-only transaction
The text was updated successfully, but these errors were encountered: