You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, for each reaction a message has we are checking all users who reacted to it.
This is extremely slow on messages with many reactions and/or people who reacted to them.
A possible solution could be to cache reactions, however, it could lead to problems if the DB isn't in sync anymore due to manual changes, outages, errors, etc.
Potential solution could be to check user roles instead of each reaction (and each user per reaction) and try to remove the associated reaction (assuming it wasn't manually added).
Currently, for each reaction a message has we are checking all users who reacted to it.
This is extremely slow on messages with many reactions and/or people who reacted to them.
A possible solution could be to cache reactions, however, it could lead to problems if the DB isn't in sync anymore due to manual changes, outages, errors, etc.
reaction-light/cogs/roles.py
Lines 79 to 87 in f6445e1
The text was updated successfully, but these errors were encountered: