summary refs log tree commit diff
path: root/synapse/storage/state.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2014-12-17 23:37:08 +0000
committerErik Johnston <erik@matrix.org>2014-12-17 23:37:08 +0000
commitf3788e3c7881de25c7d699bb9940b3cbd4dc3682 (patch)
treebfb533714a3c152cebf649612cd9b007ea048352 /synapse/storage/state.py
parentUse _get_events_txn instead of _parse_events_txn (diff)
downloadsynapse-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.py9
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