diff options
author | Erik Johnston <erik@matrix.org> | 2017-04-10 16:48:30 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2017-04-10 16:48:30 +0100 |
commit | 29574fd5b3537cc272a4d792669b8d5be2a92b6f (patch) | |
tree | 18753fe16297d23997f6f001740e5e9470033b49 /synapse/replication/slave | |
parent | Typo (diff) | |
download | synapse-29574fd5b3537cc272a4d792669b8d5be2a92b6f.tar.xz |
Reduce federation presence replication traffic
This is mainly done by moving the calculation of where to send presence updates from the presence handler to the transaction queue, so we only need to send the presence event (and not the destinations) across the replication connection. Before we were duplicating by sending the full state across once per destination.
Diffstat (limited to 'synapse/replication/slave')
-rw-r--r-- | synapse/replication/slave/storage/events.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/synapse/replication/slave/storage/events.py b/synapse/replication/slave/storage/events.py index 5fd47706ef..4ca1e5aa8c 100644 --- a/synapse/replication/slave/storage/events.py +++ b/synapse/replication/slave/storage/events.py @@ -71,6 +71,7 @@ class SlavedEventStore(BaseSlavedStore): # to reach inside the __dict__ to extract them. get_rooms_for_user = RoomMemberStore.__dict__["get_rooms_for_user"] get_users_in_room = RoomMemberStore.__dict__["get_users_in_room"] + get_hosts_in_room = RoomMemberStore.__dict__["get_hosts_in_room"] get_users_who_share_room_with_user = ( RoomMemberStore.__dict__["get_users_who_share_room_with_user"] ) |