mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-07-23 18:50:36 -04:00
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.
This commit is contained in:
parent
bb98c593a5
commit
b65acead42
3 changed files with 151 additions and 74 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue