Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimize unique values checks in QgsVectorLayerUtils
Unique constraint validation was sub-optimized in several points, this PR addresses a few of the critical paths all in QgsVectorLayerUtils - in createFeatures: on-demand creation of the cached values - in validateAttribute: don't check for uniqueness if the value is NULL and a NOT NULL constraint was violated - in valueExists: search source layers for values in joined fields Fixes #36167
- Loading branch information
Showing
2 changed files
with
118 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters