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

db: remove unnecessary key clones during ingest load #1527

Merged
merged 1 commit into from
Feb 22, 2022

Conversation

nicktrav
Copy link
Contributor

During ingest loads, the smallest and largest bounds for point and
ranges are calculated. The point and range key bounds are cloned from an
iterator. When setting the overall bounds for the table, the point and /
or range key bounds can be reused for Smallest and Largest, as the
former are stable.

Remove the unnecessary key clones.

Follow up from #1521.

During ingest loads, the smallest and largest bounds for point and
ranges are calculated. The point and range key bounds are cloned from an
iterator. When setting the overall bounds for the table, the point and /
or range key bounds can be reused for `Smallest` and `Largest`, as the
former are stable.

Remove the unnecessary key clones.

Follow up from cockroachdb#1521.
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Collaborator

@sumeerbhola sumeerbhola 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 1 of 1 files at r1.
Reviewable status: all files reviewed (commit messages unreviewed), all discussions resolved (waiting on @jbowens)

@nicktrav
Copy link
Contributor Author

TFTR!

@nicktrav nicktrav merged commit 2c52245 into cockroachdb:master Feb 22, 2022
@nicktrav nicktrav deleted the nickt.clone branch February 22, 2022 20:26
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