CoroBase: Coroutine-Oriented Main-Memory Database Engine
Yongjun He, Jiacheng Lu, Tianzheng Wang
Abstract
Data stalls are a major overhead in main-memory database engines due to the use of pointer-rich data structures. Lightweight coroutines ease the implementation of software prefetching to hide data stalls by overlapping computation and asynchronous data prefetching. Prior solutions, however, mainly focused on (1) individual components and operations and (2) intra-transaction batching that requires interface changes, breaking backward compatibility. It was not clear how they apply to a full database engine and how much end-to-end benefit they bring under various workloads.
This paper presents CoroBase, a main-memory database engine that tackles these challenges with a new coroutine-to-transaction paradigm. Coroutine-to-transaction models transactions as coroutines and thus enables inter-transaction batching, avoiding application changes but retaining the benefits of prefetching. We show that on a 48-core server, CoroBase can perform close to 2x better for read-intensive workloads and remain competitive for workloads that inherently do not benefit from software prefetching.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 0fd09dc5-2e4d-49b0-bf7d-bce7f63a9f50Cited by top-tier papers17
- ThunderRW: An In-Memory Graph Random Walk EngineShixuan Sun, Yuhang Chen, Shengliang Lu, Bingsheng He et al.VLDB 2021 · 31 citations
- The Art of Latency Hiding in Modern Database EnginesKaisong Huang, Tianzheng Wang, Qingqing Zhou, Qingzhong MengVLDB 2024 · 23 citations
- Rethinking Stateful Stream Processing with RDMABonaventura Del Monte, Steffen Zeuch, Tilmann Rabl, Volker MarklSIGMOD 2022 · 13 citations
- MxTasks: How to Make Efficient Synchronization and Prefetching EasyJan Mühlig, Jens TeubnerSIGMOD 2021 · 11 citations
- Resource Multiplexing in Tuning and Serving Large Language ModelsYongjun He, Haofeng Yang, Yao Lu, Ana Klimovic et al.USENIX ATC 2025 · 9 citations
Builds on2
Related papers
- Low-Latency Transaction Scheduling via Userspace Interrupts: Why Wait or Yield When You Can Preempt?Kaisong Huang, Jiatang Zhou, Zhuoyue Zhao, Dong Xie et al.SIGMOD 2025 · 8 citations
- CoroGraph: Bridging Cache Efficiency and Work Efficiency for Graph Algorithm ExecutionXiangyu Zhi, Xiao Yan, Bo Tang, Ziyao Yin et al.VLDB 2024 · 12 citations
- GaccO - A GPU-accelerated OLTP DBMSNils Boeschen, Carsten BinnigSIGMOD 2022 · 18 citations
- Skeena: Efficient and Consistent Cross-Engine TransactionsJianqiu Zhang, Kaisong Huang, Tianzheng Wang, King LvSIGMOD 2022 · 10 citations
- Epoch-based Commit and Replication in Distributed OLTP DatabasesYi Lu, Xiangyao Yu, Lei Cao, Samuel MaddenVLDB 2021 · 52 citations
