diff options
author | Erik Johnston <erik@matrix.org> | 2017-01-31 15:15:41 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2017-01-31 15:15:57 +0000 |
commit | 21b73757780cc8609e895cd851a3b5072c8a7e32 (patch) | |
tree | 6dbc1994d95ca03f840b44bf02e9a41693368e3a /synapse/storage/roommember.py | |
parent | Merge pull request #1864 from matrix-org/erikj/device_list_fixes (diff) | |
download | synapse-21b73757780cc8609e895cd851a3b5072c8a7e32.tar.xz |
Add an index to make membership queries faster
Diffstat (limited to 'synapse/storage/roommember.py')
-rw-r--r-- | synapse/storage/roommember.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/roommember.py b/synapse/storage/roommember.py index 0fdcf29085..10f7c7a4bc 100644 --- a/synapse/storage/roommember.py +++ b/synapse/storage/roommember.py @@ -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) |