authgear-server
authgear-server copied to clipboard
Adding roles to group with a lot of user inside the group causes long response time
- We have a group with ~20000 users
- Add a role to that group
- See long response time
Guessing the time was spent on updating the user's require_reindex_after
column, or enqueue tasks to reindex the users.
- [ ] Find the reason causing the long response time.
- [ ] If it is related to enqueue tasks, see if we can do it after returning the response.