mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 12:26:02 -04:00
Prefill state caches
This commit is contained in:
parent
3033261891
commit
a2c89a225c
3 changed files with 18 additions and 6 deletions
|
@ -227,6 +227,14 @@ class StateStore(SQLBaseStore):
|
|||
],
|
||||
)
|
||||
|
||||
txn.call_after(
|
||||
self._state_group_cache.update,
|
||||
self._state_group_cache.sequence,
|
||||
key=context.state_group,
|
||||
value=context.current_state_ids,
|
||||
full=True,
|
||||
)
|
||||
|
||||
self._simple_insert_many_txn(
|
||||
txn,
|
||||
table="event_to_state_groups",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue