Prefill state caches

This commit is contained in:
Erik Johnston 2017-05-02 10:40:31 +01:00
parent 3033261891
commit a2c89a225c
3 changed files with 18 additions and 6 deletions

View file

@ -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",