mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-07-22 15:50:38 -04:00
Optimise backfill calculation (#12522)
Try to avoid an OOM by checking fewer extremities. Generally this is a big rewrite of _maybe_backfill, to try and fix some of the TODOs and other problems in it. It's best reviewed commit-by-commit.
This commit is contained in:
parent
e75c7e3b6d
commit
17d99f758a
5 changed files with 168 additions and 106 deletions
|
@ -54,7 +54,7 @@ class RoomBatchHandler:
|
|||
# it has a larger `depth` but before the successor event because the `stream_ordering`
|
||||
# is negative before the successor event.
|
||||
successor_event_ids = await self.store.get_successor_events(
|
||||
[most_recent_prev_event_id]
|
||||
most_recent_prev_event_id
|
||||
)
|
||||
|
||||
# If we can't find any successor events, then it's a forward extremity of
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue