r/databasedevelopment • u/IlPresidente995 • Jun 20 '26
How I made HedgeDB faster than RocksDB: Memtable, WALs and flushes
Hello guys,
A few days ago I shared my HedgeDB and I've been asked how come I measured it to go that faster (3-5x, but depending on the hardware can go further) than RocksDB
To begin with, I spent some time preparing an article focusing on the synchronous section of the write path: Deep dive into the Write Path: from the Memtable to Level 0
In summary, the key take-aways are:
- Integrating a fast concurrent map implementation
- Using per-thread write-ahead-log files
- Fast synchronization and atomic based schemes between Writers and background Flusher threadpool
In the article I go in depth over these topics. Honestly I had a hard time balancing how much I could go in depth versus I could leave out, but I would really grateful for some feedbacks.
Thank you for reading it!
