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

Commits on Jul 8, 2024

  1. fix(db): Delete recipients without sub query

    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 authored and backportbot[bot] committed Jul 8, 2024
    Configuration menu
    Copy the full SHA
    50328e1 View commit details
    Browse the repository at this point in the history