diff options
author | Erik Johnston <erik@matrix.org> | 2022-07-11 21:08:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-11 20:08:39 +0000 |
commit | e5716b631c6fe0b0a8510f16a5bffddb6396f434 (patch) | |
tree | 50809aa2b1cb9c5620c9f8fee4f4f78c330735f5 /synapse/storage/databases/main/events.py | |
parent | Add a sample bash script to docs for creating multiple worker files (#13032) (diff) | |
download | synapse-e5716b631c6fe0b0a8510f16a5bffddb6396f434.tar.xz |
Don't pull out the full state when calculating push actions (#13078)
Diffstat (limited to 'synapse/storage/databases/main/events.py')
-rw-r--r-- | synapse/storage/databases/main/events.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/synapse/storage/databases/main/events.py b/synapse/storage/databases/main/events.py index 2ff3d21305..eb4efbb93c 100644 --- a/synapse/storage/databases/main/events.py +++ b/synapse/storage/databases/main/events.py @@ -1797,6 +1797,18 @@ class PersistEventsStore: self.store.get_invited_rooms_for_local_user.invalidate, (event.state_key,), ) + txn.call_after( + self.store.get_local_users_in_room.invalidate, + (event.room_id,), + ) + txn.call_after( + self.store.get_number_joined_users_in_room.invalidate, + (event.room_id,), + ) + txn.call_after( + self.store.get_user_in_room_with_profile.invalidate, + (event.room_id, event.state_key), + ) # The `_get_membership_from_event_id` is immutable, except for the # case where we look up an event *before* persisting it. |