-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
61219: opt: index accelerate <@ (contained by) expressions for array inverted indexes r=angelazxu a=angelazxu Previously, we did not support index acceleration when checking if an indexed column is <@ (contained by) a constant, or in other words, when the indexed column is on the right side of a @> (contains) expression. We already perform index acceleration for @> (contains) expressions where an indexed JSON or Array column is on the left side of the expression. This change adds support for using the inverted index with <@ expressions on Array columns. When there is an inverted index available, a scan will be done on the Array column using the spans found from the constant value. An additional filter will then be applied, as the span expression will never be tight. Support for JSON columns will be added later. Informs: #59763 Release note (performance improvement): Some additional expressions using the <@ (contained by) and @> (contains) operators now support index-acceleration with the indexed column on either side of the expression. Co-authored-by: Angela Xu <angelax@cockroachlabs.com>
- Loading branch information
Showing
10 changed files
with
887 additions
and
64 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
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.