diff options
author | Erik Johnston <erik@matrix.org> | 2017-04-25 11:43:03 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2017-04-25 11:43:03 +0100 |
commit | 22f3d3ae769a031c42cda1fb233dd91e28e585d0 (patch) | |
tree | b46578e0b3702f7a050bc6357a48d2a1c1a4fee8 /synapse | |
parent | Merge pull request #2158 from matrix-org/erikj/reduce_cache_size (diff) | |
download | synapse-22f3d3ae769a031c42cda1fb233dd91e28e585d0.tar.xz |
Reduce _get_state_group_for_event cache size
Diffstat (limited to '')
-rw-r--r-- | synapse/storage/state.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/state.py b/synapse/storage/state.py index 927a936013..e89001d994 100644 --- a/synapse/storage/state.py +++ b/synapse/storage/state.py @@ -507,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", |