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

[stable3.7] fix(db): Delete recipients without sub query #9813

Merged
merged 1 commit into from
Jul 8, 2024

Conversation

backportbot[bot]
Copy link

@backportbot backportbot bot commented Jul 8, 2024

Backport of PR #9761

MySQL does not use indexes for the "dependent" subquery. It's either a
bug or a missing optimization. EXPLAIN for the two queries is fine in
isolation but when you DELETE with subquery neither the inner nor the
outher query use an index. This causes a full table scan on very large
tables.

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
@ChristophWurst ChristophWurst merged commit 9182096 into stable3.7 Jul 8, 2024
36 checks passed
@ChristophWurst ChristophWurst deleted the backport/9761/stable3.7 branch July 8, 2024 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant