Remove superfluous room_memberships join from background update (#15733)

Spawning from https://github.com/matrix-org/synapse/pull/15731
This commit is contained in:
Eric Eastwood 2023-06-07 11:47:01 -05:00 committed by GitHub
parent 195b6a298d
commit e536f02f68
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 1 deletions

1
changelog.d/15733.misc Normal file
View file

@ -0,0 +1 @@
Remove superfluous `room_memberships` join from background update.

View file

@ -1460,7 +1460,6 @@ class RoomMemberBackgroundUpdateStore(SQLBaseStore):
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