]> cat aescling's git repositories - mastodon.git/commit
Improve account deletion performances further (#15407)
authorThibG <thib@sitedethib.com>
Tue, 22 Dec 2020 22:57:46 +0000 (23:57 +0100)
committerGitHub <noreply@github.com>
Tue, 22 Dec 2020 22:57:46 +0000 (23:57 +0100)
commit3249d35bdcd9a495af3277dfb4b2129d7ef80f15
treeaad517a164b6df760cb20e5dcf4827c180937a62
parentf18349640b686a3c3866711bfcd1d14edd5bc41a
Improve account deletion performances further (#15407)

* Delete status records by batches of 50

* Do not precompute values that are only used once

* Do not generate redis events for removal of public toots older than two weeks

* Filter reported toots a priori for polls and status deletion

* Do not process reblogs when cleaning up public timelines

As in Mastodon proper, reblogs don't appear in public TLs

* Clean the deleted account's own feed in one go

* Refactor Account#clean_feed_manager and List#clean_feed_manager

* Delete instead of destroy a few more associations

* Fix preloading

Co-authored-by: Claire <claire.github-309c@sitedethib.com>
app/lib/feed_manager.rb
app/models/account.rb
app/models/list.rb
app/services/batched_remove_status_service.rb
app/services/delete_account_service.rb
app/workers/scheduler/feed_cleanup_scheduler.rb
spec/services/batched_remove_status_service_spec.rb