Computer Science > Databases
[Submitted on 28 May 2020 (this version), latest version 21 Jul 2021 (v3)]
Title:CedrusDB: Persistent Key-Value Store with Memory-Mapped Lazy-Trie
View PDFAbstract:As RAM is becoming cheaper and growing abundant, it is time to revisit the design of persistent key-value storage systems. Most of today's persistent key-value stores are based either on a write-optimized Log-Structured Merge tree (LSM) or a read-optimized B+-tree. Instead, this paper introduces a new design called "lazy-trie" to index the persistent storage, a variant of the hash-trie data structure. A lazy-trie achieves near-optimal height and has practical storage overhead. Unlike other balanced data structures, it achieves this without the need for expensive reorganization of subtrees, allowing improved write performance. We implemented CedrusDB, a lazy-trie-based persistent key-value store that supports point lookup and updates. CedrusDB outperforms both popular LSM- and B+-tree-based key-value stores in mixed workloads. The implementation of CedrusDB uses memory-mapping. The lazy-trie organization in virtual memory allows CedrusDB to better leverage concurrent processing than other organizations.
Submission history
From: Maofan Yin [view email][v1] Thu, 28 May 2020 03:26:02 UTC (7,841 KB)
[v2] Sat, 12 Dec 2020 04:49:58 UTC (9,807 KB)
[v3] Wed, 21 Jul 2021 20:13:46 UTC (9,232 KB)
References & Citations
Bibliographic and Citation Tools
Bibliographic Explorer (What is the Explorer?)
Connected Papers (What is Connected Papers?)
Litmaps (What is Litmaps?)
scite Smart Citations (What are Smart Citations?)
Code, Data and Media Associated with this Article
alphaXiv (What is alphaXiv?)
CatalyzeX Code Finder for Papers (What is CatalyzeX?)
DagsHub (What is DagsHub?)
Gotit.pub (What is GotitPub?)
Hugging Face (What is Huggingface?)
Papers with Code (What is Papers with Code?)
ScienceCast (What is ScienceCast?)
Demos
Recommenders and Search Tools
Influence Flower (What are Influence Flowers?)
CORE Recommender (What is CORE?)
arXivLabs: experimental projects with community collaborators
arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.
Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.
Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.