Skip to content
Snippets Groups Projects
Unverified Commit 4ea54606 authored by Erik Johnston's avatar Erik Johnston Committed by GitHub
Browse files

Fix query performance for /sync (#12745)

parent 6f04ae70
No related branches found
No related tags found
No related merge requests found
Fix DB performance regression introduced in v1.59.0rc2.
......@@ -750,7 +750,7 @@ class StreamWorkerStore(EventsWorkerStore, SQLBaseStore):
WHERE room_id = ?
AND stream_ordering <= ?
AND NOT outlier
AND rejections.reason IS NULL
AND rejections.event_id IS NULL
ORDER BY stream_ordering DESC
LIMIT 1
"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment