This commit is contained in:
Erik Johnston 2024-08-28 15:05:56 +01:00
parent c5a90575bf
commit 4fd68e2736

View file

@ -1873,8 +1873,8 @@ class EventsBackgroundUpdatesStore(StreamWorkerStore, StateDeltasStore, SQLBaseS
e.stream_ordering, e.stream_ordering,
e.outlier e.outlier
FROM local_current_membership as c FROM local_current_membership as c
INNER JOIN events AS e USING (event_id)
INNER JOIN rooms USING (room_id) INNER JOIN rooms USING (room_id)
INNER JOIN events AS e USING (event_id)
WHERE c.room_id > ? WHERE c.room_id > ?
ORDER BY c.room_id ASC ORDER BY c.room_id ASC
LIMIT ? LIMIT ?
@ -1898,8 +1898,8 @@ class EventsBackgroundUpdatesStore(StreamWorkerStore, StateDeltasStore, SQLBaseS
c.event_stream_ordering, c.event_stream_ordering,
e.outlier e.outlier
FROM local_current_membership as c FROM local_current_membership as c
INNER JOIN events AS e USING (event_id)
INNER JOIN rooms USING (room_id) INNER JOIN rooms USING (room_id)
INNER JOIN events AS e USING (event_id)
WHERE event_stream_ordering > ? WHERE event_stream_ordering > ?
ORDER BY event_stream_ordering ASC ORDER BY event_stream_ordering ASC
LIMIT ? LIMIT ?