Make account data removal asynchronous and batched #8270
Labels
🐛 bug
This is a bug, not a feature request.
MongoDB
We have 2 mongodb collections: one for current products, and one for obsolete products
⭐ 🐛 top bug
Top bug.
⭐ top issue
Top issue.
👥 Users
Describe the bug
When you remove a user, there are a lot of chances that your request ends up with an error because we got a operation exceeded time limite.
This is because on user removal we must process a lot of mongodb data to change the username.
To Reproduce
Remove a user in production.
Expected behavior
We should have a nice return. The user removal should proceed safely in the background.
We can use minions to do it.
We should also do operation in batch to avoid flooding the database.
Screenshots
Additional context
Additionally it would be good to support deletion on old products.
The text was updated successfully, but these errors were encountered: