mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 17:54:48 -04:00
Add more conditions on JOINs to make postgres go a little faster.
This commit is contained in:
parent
f383d5a801
commit
6ead27ddda
2 changed files with 6 additions and 4 deletions
|
@ -212,7 +212,7 @@ class RoomMemberStore(SQLBaseStore):
|
|||
sql = (
|
||||
"SELECT m.* FROM room_memberships as m"
|
||||
" INNER JOIN current_state_events as c"
|
||||
" ON m.event_id = c.event_id"
|
||||
" ON m.event_id = c.event_id AND m.room_id = c.room_id "
|
||||
" WHERE %(where)s"
|
||||
) % {
|
||||
"where": where_clause,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue