Test some ideas that might help performance a bit

This commit is contained in:
Erik Johnston 2014-12-17 23:37:08 +00:00
parent dec5b62339
commit f3788e3c78
4 changed files with 32 additions and 23 deletions

View file

@ -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