Online Schema Evolution is (Almost) Free for Snapshot Databases

Tianxun Hu, Tianzheng Wang, Qingqing Zhou
10/8/2022
cs.DB

Official code: sfu-dis/tesseract (24 stars, C++, MIT, last commit 2023-04-01).

Abstract

Modern database applications often change their schemas to keep up with the changing requirements. However, support for online and transactional schema evolution remains challenging in existing database systems.

Show full abstract

Specifically, prior work often takes ad hoc approaches to schema evolution with 'patches' applied to existing systems, leading to many corner cases and often incomplete functionality. Applications therefore often have to carefully schedule downtimes for schema changes, sacrificing availability. This paper presents Tesseract, a new approach to online and transactional schema evolution without the aforementioned drawbacks. We design Tesseract based on a key observation: in widely used multi-versioned database systems, schema evolution can be modeled as data modification operations that change the entire table, i.e., data-definition-as-modification (DDaM). This allows us to support schema almost 'for free' by leveraging the concurrency control protocol. By simple tweaks to existing snapshot isolation protocols, on a 40-core server we show that under a variety of workloads, Tesseract is able to provide online, transactional schema evolution without service downtime, and retain high application performance when schema evolution is in progress.

View on arXivView PDF

Code Implementations(1)

sfu-dis/tesseractOfficial100%
MIT

Tesseract: Efficient Online Schema Evolution for Snapshot Databases (VLDB 2023)

242C++, CFeb 8, 20213 years agoMIT
ddlmvcconline-ddlschema-evolutionsnapshot-isolation+2 more

Similar Papers

Cite this paper

@article{hu2022online,
  title  = {Online Schema Evolution is (Almost) Free for Snapshot Databases},
  author = {Tianxun Hu and Tianzheng Wang and Qingqing Zhou},
  year   = {2022},
  eprint = {2210.03958},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.03958}
}

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/2210.03958.svg)](https://codeofpaper.com/paper/2210.03958)

Discussion