diff options
author | Erik Johnston <erik@matrix.org> | 2023-07-20 15:51:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-20 15:51:28 +0100 |
commit | fc1e534e411174d730ca3c0c7e4d2ef7fd8be56b (patch) | |
tree | 4f84eeb42805225e21ef2a811b4af5852d812e81 /synapse/state | |
parent | Fixed grafana deploy annotations in the dashboard config, so it shows for tho... (diff) | |
download | synapse-fc1e534e411174d730ca3c0c7e4d2ef7fd8be56b.tar.xz |
Speed up updating state in large rooms (#15971)
This should speed up updating state in rooms with lots of state.
Diffstat (limited to 'synapse/state')
-rw-r--r-- | synapse/state/__init__.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/synapse/state/__init__.py b/synapse/state/__init__.py index 9bc0c3b7b9..1b91cf5eaa 100644 --- a/synapse/state/__init__.py +++ b/synapse/state/__init__.py @@ -268,8 +268,7 @@ class StateHandler: The hosts in the room at the given events """ entry = await self.resolve_state_groups_for_events(room_id, event_ids) - state = await entry.get_state(self._state_storage_controller, StateFilter.all()) - return await self.store.get_joined_hosts(room_id, state, entry) + return await self._state_storage_controller.get_joined_hosts(room_id, entry) @trace @tag_args |