Compare commits

...

2 Commits

Author SHA1 Message Date
Erik Johnston
a0881634fa Newsfile 2021-03-15 16:50:36 +00:00
Erik Johnston
2e09e2163e Only send catch up events if they're the latest in the room 2021-03-15 15:34:13 +00:00
2 changed files with 3 additions and 1 deletions

1
changelog.d/9621.misc Normal file
View File

@@ -0,0 +1 @@
Only send catch up events if they're the latest in the room, reducing the number of events a server receives after recovering from downtime.

View File

@@ -428,7 +428,8 @@ class TransactionStore(TransactionWorkerStore):
) -> List[str]:
q = """
SELECT event_id FROM destination_rooms
JOIN events USING (stream_ordering)
INNER JOIN events USING (stream_ordering)
INNER JOIN event_forward_extremities USING (event_id)
WHERE destination = ?
AND stream_ordering > ?
ORDER BY stream_ordering