]> cat aescling's git repositories - mastodon.git/commit
Fix mentions not being deleted efficiently (#15416)
authorThibG <thib@sitedethib.com>
Wed, 23 Dec 2020 15:43:11 +0000 (16:43 +0100)
committerGitHub <noreply@github.com>
Wed, 23 Dec 2020 15:43:11 +0000 (16:43 +0100)
commitde57efd055c8c6af9e6e2aa450cea790546aabbc
tree0045c3f35bb15153740f79e29270574c5c8fb36a
parent473abc35a19771304839dc57dc41ef309a826658
Fix mentions not being deleted efficiently (#15416)

As a regression from the recent optimizations, mentions were left untouched
until `account.destroy`, which would then delete them individually,
and executing queries to find and delete associated notifications, resulting
in a massive slowdown.

Co-authored-by: Claire <claire.github-309c@sitedethib.com>
app/services/delete_account_service.rb