We're actually using sub-query syntax so we can ORDER each query

This commit is contained in:
Eric Eastwood 2024-06-11 22:05:27 -05:00
parent a8056ae67d
commit 3f317a9929

View file

@ -931,8 +931,6 @@ class StreamWorkerStore(EventsWorkerStore, SQLBaseStore):
# 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
# bottom.
#
# We're using the subquery syntax for SQLite compatibility.
sql = """
SELECT * FROM (
SELECT instance_name, stream_ordering, topological_ordering, event_id