diff options
author | Eric Eastwood <erice@element.io> | 2022-02-07 14:46:52 -0600 |
---|---|---|
committer | Eric Eastwood <erice@element.io> | 2022-02-07 14:46:52 -0600 |
commit | b3fcffbd1646b0b298d3c41e2f34d665e1d0422b (patch) | |
tree | 2799050ce9664475aeb52b7ccda74a9a6a874e6f | |
parent | Don't run MSC2716 complement tests for everyone (diff) | |
download | synapse-b3fcffbd1646b0b298d3c41e2f34d665e1d0422b.tar.xz |
Use same txn iteration optimization
See https://github.com/matrix-org/synapse/pull/11114#discussion_r799354680
-rw-r--r-- | synapse/storage/databases/main/event_federation.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/synapse/storage/databases/main/event_federation.py b/synapse/storage/databases/main/event_federation.py index 79e74a41a9..22f6474127 100644 --- a/synapse/storage/databases/main/event_federation.py +++ b/synapse/storage/databases/main/event_federation.py @@ -1086,7 +1086,6 @@ class EventFederationWorkerStore(SignatureWorkerStore, EventsWorkerStore, SQLBas connected_prev_event_query, (event_id, False, limit), ) - prev_event_id_results = txn.fetchall() return [ BackfillQueueNavigationItem( depth=row[0], @@ -1094,7 +1093,7 @@ class EventFederationWorkerStore(SignatureWorkerStore, EventsWorkerStore, SQLBas event_id=row[2], type=row[3], ) - for row in prev_event_id_results + for row in txn ] async def get_backfill_events( |