-
Bug
-
Resolution: Done
-
Major
-
None
-
2.7 GA, SaaS
-
None
-
Not Started
-
Not Started
-
Not Started
-
Not Started
-
Not Started
-
Not Started
-
3scale 2019-11-11
While a user has a high number (25k) UserSession suspending it is making the server timeout, thus the transaction is rolled back and the user is never suspended.
The code responsible of this is: https://github.com/3scale/porta/blob/fadbbd5741e7c1973022fc18f8654af3b5be576b/app/models/user/states.rb#L25
Dev notes
- Use delete_all instead of destroy_all
- Or delete the sessions in the background