mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-13 06:12:17 -04:00
Fix query performance for /sync (#12745)
This commit is contained in:
parent
6f04ae7033
commit
4ea546067d
2 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue