mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-10-01 11:49:51 -04:00
Fix query performance for /sync (#12745)
This commit is contained in:
parent
6f04ae7033
commit
4ea546067d
1
changelog.d/12745.bugfix
Normal file
1
changelog.d/12745.bugfix
Normal file
@ -0,0 +1 @@
|
|||||||
|
Fix DB performance regression introduced in v1.59.0rc2.
|
@ -750,7 +750,7 @@ class StreamWorkerStore(EventsWorkerStore, SQLBaseStore):
|
|||||||
WHERE room_id = ?
|
WHERE room_id = ?
|
||||||
AND stream_ordering <= ?
|
AND stream_ordering <= ?
|
||||||
AND NOT outlier
|
AND NOT outlier
|
||||||
AND rejections.reason IS NULL
|
AND rejections.event_id IS NULL
|
||||||
ORDER BY stream_ordering DESC
|
ORDER BY stream_ordering DESC
|
||||||
LIMIT 1
|
LIMIT 1
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user