-
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 project a single column of the unique constraint. This allows normalization rules to prune unnecessary columns from the expression. The unique check errors if any rows are produced, regardless of the column types or values. A column from the unique constraint is projected to ensure that an otherwise unneeded column is not projected (if it were, it would not be pruned). 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
6 changed files
with
2,397 additions
and
2,124 deletions.
There are no files selected for viewing
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
Oops, something went wrong.