Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Limit number of rows for Postgis retrieveLayerTypes
When PostgreSQL databases have many millions of objects with a geometry attribute the PostGIS dataprovider for inspecting tables/fields takes over 15 minutes for each table to open. The reason is that whole tables are read to determine the geometry types. This commit only inspects the first GEOM_TYPE_SELECT_LIMIT rows Fixes #39897
- Loading branch information