Add upgrade script that will slowly prune state_groups_state entries

This commit is contained in:
Erik Johnston 2016-09-05 09:34:24 +01:00
parent 3baf641a48
commit a99e933550
3 changed files with 223 additions and 75 deletions

View file

@ -86,6 +86,9 @@ class SlavedEventStore(BaseSlavedStore):
_get_state_groups_from_groups = (
StateStore.__dict__["_get_state_groups_from_groups"]
)
_get_state_groups_from_groups_txn = (
DataStore._get_state_groups_from_groups_txn.__func__
)
_get_state_group_from_group = (
StateStore.__dict__["_get_state_group_from_group"]
)