-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
opt: prune unnecessary columns in uniqueness checks
Projects now wrap semi-joins of unique checks which pass-through the columns of the unique constraint. This allows normalization rules to prune unnecessary columns from the expression. Release justification: This is a low-risk change to new functionality, implicitly partitioned unique indexes. Release note (performance improvement): The columns fetched for uniqueness checks of implicitly partitioned unique indexes are now pruned to only include columns necessary for determining uniqueness.
- Loading branch information
Showing
7 changed files
with
2,383 additions
and
2,141 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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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
1,204 changes: 637 additions & 567 deletions
1,204
pkg/sql/opt/optbuilder/testdata/unique-checks-insert
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
1,453 changes: 766 additions & 687 deletions
1,453
pkg/sql/opt/optbuilder/testdata/unique-checks-upsert
Large diffs are not rendered by default.
Oops, something went wrong.