diff options
author | Erik Johnston <erik@matrix.org> | 2014-12-17 23:37:08 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2014-12-17 23:37:08 +0000 |
commit | f3788e3c7881de25c7d699bb9940b3cbd4dc3682 (patch) | |
tree | bfb533714a3c152cebf649612cd9b007ea048352 /synapse/storage/state.py | |
parent | Use _get_events_txn instead of _parse_events_txn (diff) | |
download | synapse-f3788e3c7881de25c7d699bb9940b3cbd4dc3682.tar.xz |
Test some ideas that might help performance a bit
Diffstat (limited to 'synapse/storage/state.py')
-rw-r--r-- | synapse/storage/state.py | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/synapse/storage/state.py b/synapse/storage/state.py index afe3e5edea..ab80909712 100644 --- a/synapse/storage/state.py +++ b/synapse/storage/state.py @@ -62,14 +62,7 @@ class StateStore(SQLBaseStore): keyvalues={"state_group": group}, retcol="event_id", ) - state = [] - for state_id in state_ids: - s = self._get_events_txn( - txn, - [state_id], - ) - if s: - state.extend(s) + state = self._get_events_txn(txn, state_ids) res[group] = state |