diff options
| author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-06-09 19:13:10 +0200 |
|---|---|---|
| committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-06-09 19:13:10 +0200 |
| commit | 04d5f65b6b9d7efd44072339a5a429959d9d0d0d (patch) | |
| tree | 3ca800ed417121a024fa16dbcfbecb58c60ab328 | |
| parent | chore(yt/*): Remove trivial warnings (diff) | |
| download | yt-04d5f65b6b9d7efd44072339a5a429959d9d0d0d.zip | |
fix(yt/db/get/txn_log): Order by `ROWID` instead of `timestamp`prime
`timestamp` can be the same value, if we are committing a lot of
operations at the same time (which often happens), while `ROWID` is, as
defined by SQLite, incremented on every new row insertion.
| -rw-r--r-- | crates/yt/src/storage/db/get/txn_log.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/yt/src/storage/db/get/txn_log.rs b/crates/yt/src/storage/db/get/txn_log.rs index 1a6df2c..8e3e950 100644 --- a/crates/yt/src/storage/db/get/txn_log.rs +++ b/crates/yt/src/storage/db/get/txn_log.rs @@ -23,7 +23,7 @@ impl<O: Committable> TxnLog<O> { " SELECT * FROM txn_log - ORDER BY timestamp ASC; + ORDER BY ROWID ASC; " ) .fetch_all(&app.database) |
