←back to thread

141 points bibiver | 3 comments | | HN request time: 0.866s | source
1. geopert ◴[] No.45657565[source]
nice crate thanks. I wasn't expecting sqlite to be faster than rocksdb, which is key-value. The way you store the leaves (level, index) should be super fast for a key-value store.
replies(1): >>45660158 #
2. Retr0id ◴[] No.45660158[source]
This surprised me too. My guess is that while rocks is typically faster for write-heavy workloads, inserting into the merkle tree actually require a fair few reads as part of the process (but I haven't looked closely).
replies(1): >>45665618 #
3. bibiver ◴[] No.45665618[source]
mmm most of writes and reads (if not all) are batched, meaning a leaf insert triggers just a batched write (containing all updates). maybe there is some fine tunning to be made.