Embedded key-value database for hot mutable state.
Comparison with Pebble (NoSync mode):
- Reads: 1.0µs vs 4.1µs
- Writes: 1.1µs vs 1.1µs
- Startup: 224ms vs 26s (open + first read)
- Atomic counters: 257ns Inc operation
go get github.com/uchebnick/fusedbdb, _ := oneleafdb.OpenDB(oneleafdb.DBOptions{
Dir: "/tmp/db",
CacheBytes: 5 << 20,
ThresholdBytes: 5 << 20,
})
defer db.Close()
db.Put([]byte("key"), []byte("value"))
db.Inc([]byte("counter"), 1)
value, found, _ := db.Get([]byte("key"))- Lock-free skiplist buffer
- Immutable segments with LZ4 compression
- Async WAL with group commit
Details: ARCHITECTURE.md
Experimental. Not production-ready.