1
0

Use same txn iteration optimization

See https://github.com/matrix-org/synapse/pull/11114#discussion_r799354680
This commit is contained in:
Eric Eastwood
2022-02-07 14:46:52 -06:00
parent 023bd3eb8c
commit b3fcffbd16

View File

@@ -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(