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 (#1…
Browse files Browse the repository at this point in the history
…5733)

Spawning from #15731
  • Loading branch information
MadLittleMods committed Jun 7, 2023
1 parent 195b6a2 commit e536f02
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/15733.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Remove superfluous `room_memberships` join from background update.
1 change: 0 additions & 1 deletion synapse/storage/databases/main/roommember.py
Original file line number Diff line number Diff line change
Expand Up @@ -1460,7 +1460,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 e536f02

Please sign in to comment.