L-Store: A Real-time OLTP and OLAP System

Mohammad Sadoghi, Souvik Bhattacherjee, Bishwaranjan Bhattacharjee, Mustafa Canim

Abstract

L-Store (Lineage-based Data Store) is a unified database engine designed to handle both high-velocity transactions (OLTP) and complex real-time analytics (OLAP) simultaneously. By using a novel lineage-based storage architecture that lazily "stages" data from write-optimized to read-optimized columnar formats without blocking active transactions, it eliminates the need for separate, loosely integrated systems and provides actionable insights on the most current data.

Introduction

Historically, the database world has been split: OLTP (Online Transactional Processing) systems are optimized for fast row-based updates, while OLAP (Online Analytical Processing) systems are optimized for scanning massive amounts of columnar data. To get analytics on transactional data, companies typically use an ETL (Extract, Transform, Load) process to move data from an OLTP database to an OLAP data warehouse. This creates a "freshness gap"—the analytics are often performed on stale data (hours or days old).

While some "Hybrid" (HTAP) systems exist, they often rely on maintaining two separate copies of data or using "blocking" merge processes that pause transactions to update the analytical store. L-Store aims to solve this "one size does not fit all" dilemma by creating a single, contention-free engine that handles both workloads on a single representation of data.

Lineage-based Storage Architecture

The core of L-Store is its Lineage-based Storage Architecture. Instead of choosing between rows and columns, it uses a native columnar layout for everything but manages it through two types of pages:

  1. Base Pages: Read-optimized, compressed, and stable. These are the "source of truth" for analytical queries.
  2. Tail Pages: Write-optimized and append-only. When a record is updated, the new values are appended here rather than overwriting the base page.
The Lineage-based Storage Architecture uses indirection columns to link base records to their latest versions in tail pages.

Key Innovations

  • Indirection Column: Every base record has a pointer (RID) to its latest version in the tail pages. This creates a version chain. The authors guarantee a 2-hop access limit to find the latest version, preventing performance degradation over time.
  • Contention-free, Relaxed Merge: A background process periodically merges "stable" (committed) tail updates back into base pages. Because it only operates on committed data, it doesn't need to lock the database or "drain" active transactions, a common bottleneck in systems like SAP HANA.
  • Tail-page Sequence Number (TPS): Each page tracks its own lineage. This allows readers to determine exactly which updates have been consolidated into a base page, ensuring consistent snapshots even while merging happens in the background.
  • Ownership Relaying (OR) Protocol: A specialized logging protocol that reduces contention on the "Page LSN" (Log Sequence Number). In high-concurrency systems, updating the LSN is often a bottleneck; OR allows multiple writers to share latches safely.
The asynchronous lazy merge process consolidates committed updates from the merge queue into read-optimized base pages.

Evaluation and Performance

The authors evaluated L-Store using a comprehensive micro-benchmark designed to simulate various HTAP scenarios, comparing it against In-place Update + History (IUH) and Delta + Blocking Merge (DBM) architectures.

  • Superior Scalability: Under high contention, L-Store achieved up to a 40.5x speedup over the IUH approach and a 14.5x speedup over the DBM approach.
  • Throughput: L-Store maintained nearly linear scalability as the number of update threads increased, whereas the Blocking Merge approach saw performance collapse due to the overhead of pausing transactions for merges.
  • Scan Performance: Even with heavy concurrent updates, L-Store's scan performance remained stable. It outperformed the comparison systems by 14% to 36% because its background merge keeps the "read-optimized" base pages very close to the current state of the data.

Conclusion

L-Store proves that a columnar-first design can efficiently handle OLTP workloads when paired with a smart indirection layer and a decoupled merge process. By focusing on merging only stable data, L-Store removes the "stop-the-world" pauses common in other hybrid systems, providing a truly unified solution for real-time data processing. Future work will look into disk-heavy workloads and more complex join optimizations for the merge process.

Summary updated

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
Microbenchmark · micro benchmark, scan performanceL-StoreScan Performance0.24 secs.-0.04 vs baselinecontention=low · scan-range=4K records · scan-threads=1 · update-threads=16
Source quote
L1678: {Scan Performance (in secs.)} │ 0.24 │ 0.28 │ 0.38
Reported baseline / comparator measurements (2)
BenchmarkMethodMetricScoreProtocol / Evidence
Microbenchmark · micro benchmark, scan performanceIn-place Update + History (IUH) baselineScan Performance0.28 secs.contention=low · scan-range=4K records · scan-threads=1 · update-threads=16
Source quote
L1678: {Scan Performance (in secs.)} │ 0.24 │ 0.28 │ 0.38
Microbenchmark · micro benchmark, scan performanceDelta + Blocking Merge (DBM) baselineScan Performance0.38 secs.contention=low · scan-range=4K records · scan-threads=1 · update-threads=16
Source quote
L1678: {Scan Performance (in secs.)} │ 0.24 │ 0.28 │ 0.38
BibTeX
@inproceedings{sadoghi2018l,
  author = {Mohammad Sadoghi and Souvik Bhattacherjee and Bishwaranjan Bhattacharjee and Mustafa Canim},
  title = {{L-Store: A Real-time OLTP and OLAP System}},
  booktitle = {EDBT},
  year = {2018},
  doi = {10.5441/002/edbt.2018.65},
}
Figure