High-performance concurrency control mechanisms for main-memory databases

  • Authors:
  • Per-Åke Larson;Spyros Blanas;Cristian Diaconu;Craig Freedman;Jignesh M. Patel;Mike Zwilling

  • Affiliations:
  • Microsoft;University of Wisconsin -- Madison;Microsoft;Microsoft;University of Wisconsin -- Madison;Microsoft

  • Venue:
  • Proceedings of the VLDB Endowment
  • Year:
  • 2011

Quantified Score

Hi-index 0.00

Visualization

Abstract

A database system optimized for in-memory storage can support much higher transaction rates than current systems. However, standard concurrency control methods used today do not scale to the high transaction rates achievable by such systems. In this paper we introduce two efficient concurrency control methods specifically designed for main-memory databases. Both use multiversioning to isolate read-only transactions from updates but differ in how atomicity is ensured: one is optimistic and one is pessimistic. To avoid expensive context switching, transactions never block during normal processing but they may have to wait before commit to ensure correct serialization ordering. We also implemented a main-memory optimized version of single-version locking. Experimental results show that while single-version locking works well when transactions are short and contention is low performance degrades under more demanding conditions. The multiversion schemes have higher overhead but are much less sensitive to hotspots and the presence of long-running transactions.