diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2022-02-08 07:43:30 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-08 07:43:30 -0500 |
commit | 8b309adb436c162510ed1402f33b8741d71fc058 (patch) | |
tree | a4d82e8fd8b9215204c7c0986ec2e216d09a1e27 /synapse/storage/databases/main/events.py | |
parent | Return JSON errors for unknown resources under /matrix/client. (#11930) (diff) | |
download | synapse-8b309adb436c162510ed1402f33b8741d71fc058.tar.xz |
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.
Diffstat (limited to 'synapse/storage/databases/main/events.py')
-rw-r--r-- | synapse/storage/databases/main/events.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/synapse/storage/databases/main/events.py b/synapse/storage/databases/main/events.py index b804185c40..2e44c77715 100644 --- a/synapse/storage/databases/main/events.py +++ b/synapse/storage/databases/main/events.py @@ -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( |