-
Notifications
You must be signed in to change notification settings - Fork 256
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
1 parent
3046c49
commit 50328e1
Showing
1 changed file
with
30 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters