This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
Reduce the amount of room members we pull out when calculating push actions #12653
Labels
A-Push
Issues related to push/notifications
T-Enhancement
New features, changes in functionality, improvements in performance, or user-facing enhancements.
Milestone
When we calculate push actions for an event we fetch all users that were in the room at the time:
synapse/synapse/push/bulk_push_rule_evaluator.py
Line 200 in ef86cf3
However, we only use the result in two places:
Thus for small servers that only have one or two users in the room, fetching the full state is overkill and causes increased memory and DB usage.
We separately do another state query to find out who should be pushed in the room, at:
synapse/synapse/push/bulk_push_rule_evaluator.py
Line 418 in ef86cf3
We should figure out a way to not do this.
The text was updated successfully, but these errors were encountered: