mirror of
https://github.com/element-hq/synapse
synced 2024-06-30 16:03:32 +00:00
We're actually using sub-query syntax so we can ORDER each query
This commit is contained in:
parent
a8056ae67d
commit
3f317a9929
|
@ -931,8 +931,6 @@ class StreamWorkerStore(EventsWorkerStore, SQLBaseStore):
|
||||||
# ordering of the operand queries but there is no actual gurantee that it
|
# ordering of the operand queries but there is no actual gurantee that it
|
||||||
# has this behavior in all scenarios so we need the extra `ORDER BY` at the
|
# has this behavior in all scenarios so we need the extra `ORDER BY` at the
|
||||||
# bottom.
|
# bottom.
|
||||||
#
|
|
||||||
# We're using the subquery syntax for SQLite compatibility.
|
|
||||||
sql = """
|
sql = """
|
||||||
SELECT * FROM (
|
SELECT * FROM (
|
||||||
SELECT instance_name, stream_ordering, topological_ordering, event_id
|
SELECT instance_name, stream_ordering, topological_ordering, event_id
|
||||||
|
|
Loading…
Reference in a new issue