mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-07-23 17:40:36 -04:00
Fetch edits for multiple events in a single query. (#11660)
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
380c3d40f4
commit
8b309adb43
3 changed files with 101 additions and 54 deletions
|
@ -1801,9 +1801,7 @@ class PersistEventsStore:
|
|||
)
|
||||
|
||||
if rel_type == RelationTypes.REPLACE:
|
||||
txn.call_after(
|
||||
self.store.get_applicable_edit.invalidate, (parent_id, event.room_id)
|
||||
)
|
||||
txn.call_after(self.store.get_applicable_edit.invalidate, (parent_id,))
|
||||
|
||||
if rel_type == RelationTypes.THREAD:
|
||||
txn.call_after(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue