This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
Add table for ignored users to make calculating push rules faster for large rooms. #9022
Labels
A-Performance
Performance, both client-facing and admin-facing
For large rooms we spend quite a lot of time figuring out if anyone ignores the user:
synapse/synapse/push/bulk_push_rule_evaluator.py
Lines 206 to 213 in 5d34f40
which will look up the account data for each
uid
user. We can make this way more efficient by having a separate table for ignored users (updated when the account data is updated), which would allow us to do a single query to figure out everyone who ignoresevent.sender
.(The table should be quite small since few people are ignored)
The text was updated successfully, but these errors were encountered: