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

Commit 771d204

Browse files
erikjohnstonDavid Robertson
authored and
David Robertson
committed
Fix query performance for /sync
Broke in #12729.
1 parent 7b83ac8 commit 771d204

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

synapse/storage/databases/main/stream.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,7 @@ def _f(txn: LoggingTransaction) -> Optional[Tuple[int, int, str]]:
750750
WHERE room_id = ?
751751
AND stream_ordering <= ?
752752
AND NOT outlier
753-
AND rejections.reason IS NULL
753+
AND rejections.event_id IS NULL
754754
ORDER BY stream_ordering DESC
755755
LIMIT 1
756756
"""

0 commit comments

Comments
 (0)