Please sign in to comment.
Postgis: cache information about enum fields
This is called several times and can slow down substantially the opening of the attribute table. Partially fixes #21303 (down from ~30 to ~6 seconds on a remote connection) The remaining ~4 seconds (compared to ~2 seconds in 2.18) are due to the check for enums and provider-side constraints, that were not implemented in 2.18. See: QgsEnumerationWidgetFactory::fieldScore and the call to enumValues for details, fieldScore is called several times because QgsAttributeTableModel::loadAttributes is also called multiple times and it queries for widget configuration all the times.
- Loading branch information
Showing with 39 additions and 7 deletions.