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

staging-v22.2.18: ttljob: add hint to use PK in delete query #118420

Merged
merged 1 commit into from
Jan 30, 2024

Conversation

blathers-crl[bot]
Copy link

@blathers-crl blathers-crl bot commented Jan 29, 2024

Backport 1/1 commits from #118335 on behalf of @blathers-crl[bot].

/cc @cockroachdb/release


Backport 1/1 commits from #118318 on behalf of @rafiss.

/cc @cockroachdb/release


This will help avoid choosing a plan that scans a secondary index, which can lead to many KV rows being scanned and also lead to contention.

informs #82140

Release note (bug fix): Fixed a bug that could cause DELETE queries sent by the row-level TTL job to use a secondary index rather than the primary index to find the rows to delete. This could lead to some DELETE operations taking a much longer time than they should. This bug was present since v22.2.0.


Release justification: bug fix


Release justification:

This will help avoid choosing a plan that scans a secondary index, which
can lead to many KV rows being scanned and also lead to contention.

Release note (bug fix): Fixed a bug that could cause DELETE queries sent
by the row-level TTL job to use a secondary index rather than the
primary index to find the rows to delete. This could lead to some DELETE
operations taking a much longer time than they should. This bug was
present since v22.2.0.
@blathers-crl blathers-crl bot requested a review from a team as a code owner January 29, 2024 16:51
@blathers-crl blathers-crl bot added blathers-backport This is a backport that Blathers created automatically. O-robot Originated from a bot. labels Jan 29, 2024
@blathers-crl blathers-crl bot force-pushed the blathers/backport-staging-v22.2.18-118335 branch from 2d28ba0 to ccbde5f Compare January 29, 2024 16:51
Copy link
Author

blathers-crl bot commented Jan 29, 2024

It looks like your PR touches production code but doesn't add or edit any test code. Did you consider adding tests to your PR?

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

@cockroach-teamcity
Copy link
Member

This change is Reviewable

@celiala celiala changed the title staging-v22.2.18: release-22.2: ttljob: add hint to use PK in delete query staging-v22.2.18: ttljob: add hint to use PK in delete query Jan 30, 2024
@celiala celiala merged commit 0803c71 into staging-v22.2.18 Jan 30, 2024
5 of 6 checks passed
@celiala celiala deleted the blathers/backport-staging-v22.2.18-118335 branch January 30, 2024 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blathers-backport This is a backport that Blathers created automatically. O-robot Originated from a bot.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants