novatoolpermissions icon indicating copy to clipboard operation
novatoolpermissions copied to clipboard

Fix memory usage when listing roles increasing with user count

Open henrikgamerzclass opened this issue 5 years ago • 2 comments

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 avatar Dec 10 '20 09:12 henrikgamerzclass

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

m2de avatar Dec 10 '20 10:12 m2de

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

henrikgamerzclass avatar Mar 10 '21 11:03 henrikgamerzclass