mirror of
https://github.com/VectifyAI/PageIndex.git
synced 2026-07-24 21:41:04 +02:00
chore: compress the tie-break comment to one line
This commit is contained in:
parent
d6b22e8fed
commit
3bde8fe46e
1 changed files with 1 additions and 3 deletions
|
|
@ -265,9 +265,7 @@ class SQLiteStorage:
|
|||
def list_documents(self, collection: str) -> list[dict]:
|
||||
conn = self._get_conn()
|
||||
rows = conn.execute(
|
||||
# Tie-breaker mirrors the cloud's effective order: server ids are
|
||||
# time-ordered cuids, so "id" ASC there means insertion order —
|
||||
# which locally is rowid ASC (uuid4 doc_ids sort randomly).
|
||||
# rowid ASC = insertion order, the cloud's effective tie-break (its cuid ids are time-ordered)
|
||||
"SELECT doc_id, doc_name, doc_description, doc_type FROM documents WHERE collection_name = ? ORDER BY created_at DESC, rowid ASC",
|
||||
(collection,),
|
||||
).fetchall()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue