diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2022-02-11 09:50:14 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-11 09:50:14 -0500 |
commit | b65acead428653b988351ae8d7b22127a22039cd (patch) | |
tree | 9cda595b79c838b8769570fd60cb4f8e1f262841 /synapse/storage/databases/main/events.py | |
parent | Prepare for rename of default complement branch (#11971) (diff) | |
download | synapse-b65acead428653b988351ae8d7b22127a22039cd.tar.xz |
Fetch thread summaries for multiple events in a single query (#11752)
This should reduce database usage when fetching bundled aggregations as the number of individual queries (and round trips to the database) are reduced.
Diffstat (limited to 'synapse/storage/databases/main/events.py')
-rw-r--r-- | synapse/storage/databases/main/events.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/databases/main/events.py b/synapse/storage/databases/main/events.py index 2e44c77715..5246fccad5 100644 --- a/synapse/storage/databases/main/events.py +++ b/synapse/storage/databases/main/events.py @@ -1812,7 +1812,7 @@ class PersistEventsStore: # potentially error-prone) so it is always invalidated. txn.call_after( self.store.get_thread_participated.invalidate, - (parent_id, event.room_id, event.sender), + (parent_id, event.sender), ) def _handle_insertion_event(self, txn: LoggingTransaction, event: EventBase): |