Skip to content
Snippets Groups Projects
Commit 3ecaabc7 authored by Erik Johnston's avatar Erik Johnston
Browse files

Use topological orders for initial sync timeline

parent 1309b8ca
No related branches found
No related tags found
No related merge requests found
......@@ -217,8 +217,8 @@ class StreamStore(SQLBaseStore):
" room_id = ?"
" AND not outlier"
" AND stream_ordering <= ?"
" ORDER BY stream_ordering %s LIMIT ?"
) % (order,)
" ORDER BY topological_ordering %s, stream_ordering %s LIMIT ?"
) % (order, order,)
txn.execute(sql, (room_id, to_id, limit))
rows = self.cursor_to_dict(txn)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment