mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-01 07:46:05 -04:00
Test some ideas that might help performance a bit
This commit is contained in:
parent
dec5b62339
commit
f3788e3c78
4 changed files with 32 additions and 23 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue