diff options
author | David Baker <dave@matrix.org> | 2017-04-26 11:31:55 +0100 |
---|---|---|
committer | David Baker <dave@matrix.org> | 2017-04-26 11:31:55 +0100 |
commit | 81804909d3a7c20330b2992cf1fed0672dd8f531 (patch) | |
tree | a6849618c8e3d2e6eb8f7136c8055c5c4b3e10fb /synapse/storage/state.py | |
parent | Fix get_json (diff) | |
parent | document how to make IPv6 work (#2088) (diff) | |
download | synapse-81804909d3a7c20330b2992cf1fed0672dd8f531.tar.xz |
Merge remote-tracking branch 'origin/develop' into dbkr/http_request_propagate_error
Diffstat (limited to 'synapse/storage/state.py')
-rw-r--r-- | synapse/storage/state.py | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/synapse/storage/state.py b/synapse/storage/state.py index acd69944c4..e89001d994 100644 --- a/synapse/storage/state.py +++ b/synapse/storage/state.py @@ -279,12 +279,7 @@ class StateStore(SQLBaseStore): return count - @cached(num_args=2, max_entries=100000, iterable=True) - def _get_state_group_from_group(self, group, types): - raise NotImplementedError() - - @cachedList(cached_method_name="_get_state_group_from_group", - list_name="groups", num_args=2, inlineCallbacks=True) + @defer.inlineCallbacks def _get_state_groups_from_groups(self, groups, types): """Returns dictionary state_group -> (dict of (type, state_key) -> event id) """ @@ -512,7 +507,7 @@ class StateStore(SQLBaseStore): state_map = yield self.get_state_ids_for_events([event_id], types) defer.returnValue(state_map[event_id]) - @cached(num_args=2, max_entries=100000) + @cached(num_args=2, max_entries=50000) def _get_state_group_for_event(self, room_id, event_id): return self._simple_select_one_onecol( table="event_to_state_groups", |