|
|
|
|
|
by losfair
767 days ago
|
|
(I work on Deno KV) A read-modify-write retry loop causes a high number of commit conflicts, e.g. for atomic increments on integers. Getting higher than 1/RTT per-key throughput requires the "backend" to understand the semantics of the operations - apply a function to the current value, instead of just checking whether timestamp(value) < timestamp(txn.start) and aborting commit if not. |
|
For those that haven't seen it, SQLite on top of FoundationDB: https://github.com/losfair/mvsqlite