-
-
Notifications
You must be signed in to change notification settings - Fork 8
deadlock in delete_from_account #19
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
hello. i think i've figured this out. it looks like postgres does not lock all the rows in a one way to fix this, since we only need a random sample of posts and don't necessarily need all 100 posts that were picked, would be to however i think there is a larger problem here. it seems unwise to lock a hundred rows and then go off making potentially slow http requests, up to 101 of them in mastodon's case |
btw the reason why we lock those rows |
disable autoflush in refresh_posts, fixing deadlocks. closes GH-19
forget/tasks.py
Lines 233 to 237 in eae4d06
The text was updated successfully, but these errors were encountered: