Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix memory usage when listing roles increasing with user count #60

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

henrikgamerzclass
Copy link

We recently ran into this issue because we have roles attached to more than 86.000 users. The way each role's user count was calculated would load the full user model of all users that has a role, which caused our containers to run out of memory.

This fix changed our memory usage from 1197 MB to 2 MB.

@henrikgamerzclass henrikgamerzclass changed the title Fix memory usage when listing roles increasing over time Fix memory usage when listing roles increasing with user count Dec 10, 2020
@m2de
Copy link
Contributor

m2de commented Dec 10, 2020

Thanks very much for your contribution, will get this merged in this afternoon.

@henrikgamerzclass
Copy link
Author

Sorry for rushing, but is there an ETA on this one?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants