No need to order by stuff that isn't different
See https://github.com/matrix-org/synapse/pull/14494#discussion_r1028925226
This commit is contained in:
@@ -335,8 +335,6 @@ class StateGroupDataStore(StateBackgroundUpdateStore, SQLBaseStore):
|
||||
)
|
||||
AND (type = ? AND state_key = ?)
|
||||
ORDER BY
|
||||
type,
|
||||
state_key,
|
||||
-- Use the lastest state in the chain (highest numbered state_group in the chain)
|
||||
state_group DESC
|
||||
LIMIT 1
|
||||
|
||||
Reference in New Issue
Block a user