Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Remove superfluous room_memberships join from background update
Browse files Browse the repository at this point in the history
Spawning from #15731
  • Loading branch information
MadLittleMods committed Jun 7, 2023
1 parent 6ee96e9 commit 9ac6917
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion synapse/storage/databases/main/roommember.py
Original file line number Diff line number Diff line change
Expand Up @@ -1461,7 +1461,6 @@ def add_membership_profile_txn(txn: LoggingTransaction) -> int:
SELECT stream_ordering, event_id, events.room_id, event_json.json
FROM events
INNER JOIN event_json USING (event_id)
INNER JOIN room_memberships USING (event_id)
WHERE ? <= stream_ordering AND stream_ordering < ?
AND type = 'm.room.member'
ORDER BY stream_ordering DESC
Expand Down

0 comments on commit 9ac6917

Please sign in to comment.