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

Commit 98a2cbc

Browse files
committed
Fix query performance for /sync
Broke in #12729.
1 parent 6f04ae7 commit 98a2cbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: synapse/storage/databases/main/stream.py

+1-1
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)