[论文解读] L-Store: A Real-time OLTP and OLAP System
L-Store 提出了一种统一的、基于血缘关系的存储架构,通过懒惰地将写优化的数据合并为读优化的列式格式,无需数据复制,在单一引擎中实现了实时 OLTP 和 OLAP 处理。它实现了无争用的事务处理,并且与现有最先进系统相比,短更新事务的性能最高提升 7.91 倍。
Arguably data is the new natural resource in the enterprise world with an unprecedented degree of proliferation. But to derive real-time actionable insights from the data, it is important to bridge the gap between managing the data that is being updated at a high velocity (i.e., OLTP) and analyzing a large volume of data (i.e., OLAP). However, there has been a divide where specialized solutions were often deployed to support either OLTP or OLAP workloads but not both; thus, limiting the analysis to stale and possibly irrelevant data. In this paper, we present Lineage-based Data Store (L-Store) that combines the real-time processing of transactional and analytical workloads within a single unified engine by introducing a novel lineage-based storage architecture. By exploiting the lineage, we develop a contention-free and lazy staging of columnar data from a write-optimized form (suitable for OLTP) into a read-optimized form (suitable for OLAP) in a transactionally consistent approach that also supports querying and retaining the current and historic data. Our working prototype of L-Store demonstrates its superiority compared to state-of-the-art approaches under a comprehensive experimental evaluation.
研究动机与目标
- 为解决在单一可扩展数据库系统中统一实时 OLTP 和 OLAP 工作负载的根本挑战。
- 消除对双重数据表示(行式与列式)或多个松散耦合引擎的需求。
- 在不牺牲性能的前提下,实现实时分析最新数据并保持事务一致性。
- 设计一种支持高吞吐量更新和高效分析扫描的存储架构。
提出的方法
- L-Store 使用基于血缘关系的存储模型,每个基础页面跟踪血缘信息,以支持恢复和无协调的合并。
- 最近的更新以写优化、聚簇的方式追加到尾部页面,以消除读写争用。
- 采用无争用的懒惰合并过程,通过基于时间戳的页面去分配机制独立更新基础页面,避免阻塞。
- 系统采用嵌入式间接寻址层,实现对任意记录最新版本的最多两跳访问。
- 它利用乐观并发控制模型,结合推测性读取和 2VCC 语义,以支持高并发。
- 该架构避免了数据复制,仅维护一种统一的、列式的数据表示形式。
实验结果
研究问题
- RQ1单一存储引擎能否在不进行数据复制或引擎专业化的情况下,高效支持实时 OLTP 和 OLAP 工作负载?
- RQ2血缘追踪如何在高并发环境中实现无协调、事务一致的列式数据合并?
- RQ3哪些架构模式可以在保持更新和扫描实时性能的同时,消除数据合并过程中的争用?
- RQ4在混合 OLTP/OLAP 工作负载下,统一的列式存储模型在多大程度上优于使用双格式或增量合并方法的系统?
主要发现
- 对于短更新事务,L-Store 的性能相比 In-place Update + History 最高提升 5.37 倍。
- 与基线系统相比,其分析扫描性能略有提升。
- 在短更新事务方面,L-Store 相比 Delta + Blocking Merge 最高提升 7.91 倍。
- 对于长读取分析查询,L-Store 相比 Delta + Blocking Merge 最高提升 2.37 倍。
- 该系统消除了数据复制的需求,仅维护一种统一的数据表示形式。
- 无争用的合并机制与基于时间戳的去分配机制,使得高并发成为可能,且不会因事务阻塞而降低性能。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。