CoroBase: Coroutine-Oriented Main-Memory Database Engine

Yongjun He, Jiacheng Lu, Tianzheng Wang
10/29/2020
cs.DB

Official code: sfu-dis/corobase (256 stars, C++, MIT, last commit 2021-11-28).

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

sfu-dis/corobaseOfficial100%
MIT

Coroutine-Oriented Main-Memory Database Engine (VLDB 2021)

25633C++, CMay 17, 20205 years agoMIT
corobasecoroutinescoroutines-tscpp20database+5 more

Similar Papers

Cite this paper

@article{he2020corobase,
  title  = {CoroBase: Coroutine-Oriented Main-Memory Database Engine},
  author = {Yongjun He and Jiacheng Lu and Tianzheng Wang},
  year   = {2020},
  eprint = {2010.15981},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2010.15981}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2010.15981.svg)](https://codeofpaper.com/paper/2010.15981)

Discussion