mirror of
https://mau.dev/maunium/synapse.git
synced 2024-08-25 19:56:21 +00:00
Use topological orders for initial sync timeline
This commit is contained in:
parent
1309b8ca97
commit
3ecaabc7fd
@ -217,8 +217,8 @@ class StreamStore(SQLBaseStore):
|
|||||||
" room_id = ?"
|
" room_id = ?"
|
||||||
" AND not outlier"
|
" AND not outlier"
|
||||||
" AND stream_ordering <= ?"
|
" AND stream_ordering <= ?"
|
||||||
" ORDER BY stream_ordering %s LIMIT ?"
|
" ORDER BY topological_ordering %s, stream_ordering %s LIMIT ?"
|
||||||
) % (order,)
|
) % (order, order,)
|
||||||
txn.execute(sql, (room_id, to_id, limit))
|
txn.execute(sql, (room_id, to_id, limit))
|
||||||
|
|
||||||
rows = self.cursor_to_dict(txn)
|
rows = self.cursor_to_dict(txn)
|
||||||
|
Loading…
Reference in New Issue
Block a user