This is due to looping through lots of users and atomically changing their assignment array.
Proposing merging all assignment array into one document for faster updating. The downside to this is whenever a user requests their assignment, all assignments will be fetched.
This is due to looping through lots of users and atomically changing their assignment array. Proposing merging all assignment array into one document for faster updating. The downside to this is whenever a user requests their assignment, all assignments will be fetched.