mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-03 04:14:56 -04:00
Add an index to make membership queries faster
This commit is contained in:
parent
ac001dabdc
commit
21b7375778
3 changed files with 26 additions and 1 deletions
|
@ -220,7 +220,7 @@ class RoomMemberStore(SQLBaseStore):
|
|||
" ON e.event_id = c.event_id"
|
||||
" AND m.room_id = c.room_id"
|
||||
" AND m.user_id = c.state_key"
|
||||
" WHERE %s"
|
||||
" WHERE c.type = 'm.room.member' AND %s"
|
||||
) % (where_clause,)
|
||||
|
||||
txn.execute(sql, args)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue