Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release-21.1: colexec: optimize CASE, AND, and OR projection operators #63001

Merged
merged 1 commit into from
May 13, 2021

Conversation

yuzefovich
Copy link
Member

Backport 1/1 commits from #62925.

/cc @cockroachdb/release


Previously, in CASE, AND, and OR projection operators we would always
allocate internal selection vectors of maximum capacity in the
constructor. This is inefficient when the query processes only small
data sets. This commit makes the allocations lazy and of tight sizes
based on the batch lengths.

Addresses: #62212

Release note: None

Previously, in CASE, AND, and OR projection operators we would always
allocate internal selection vectors of maximum capacity in the
constructor. This is inefficient when the query processes only small
data sets. This commit makes the allocations lazy and of tight sizes
based on the batch lengths.

Release note: None
@yuzefovich yuzefovich requested a review from rytaft April 1, 2021 22:12
@yuzefovich yuzefovich added the do-not-merge bors won't merge a PR with this label. label Apr 1, 2021
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@yuzefovich
Copy link
Member Author

Will wait for 21.1.1.

Copy link
Collaborator

@rytaft rytaft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 4 of 4 files at r1.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @yuzefovich)

@yuzefovich yuzefovich removed the do-not-merge bors won't merge a PR with this label. label May 13, 2021
@yuzefovich yuzefovich merged commit cee1c93 into cockroachdb:release-21.1 May 13, 2021
@yuzefovich yuzefovich deleted the backport21.1-62925 branch May 13, 2021 05:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants