The cleanup attachment worker was run for every deleted post, even if it’s a remote post whose attachments we don't even store. This was especially bad due to attachment cleanup involving a particularly heavy query wasting a bunch of database perf for nil. This was uncovered by comparing statistics from https://akkoma.dev/AkkomaGang/akkoma/issues/784 and https://akkoma.dev/AkkomaGang/akkoma/issues/765#issuecomment-12256 |
||
|---|---|---|
| .. | ||
| cron | ||
| attachments_cleanup_worker_test.exs | ||
| publisher_worker_test.exs | ||
| purge_expired_activity_test.exs | ||
| purge_expired_filter_test.exs | ||
| purge_expired_token_test.exs | ||
| receiver_worker_test.exs | ||
| remote_fetcher_worker_test.exs | ||
| scheduled_activity_worker_test.exs | ||