[Paper Review] Building an OceanBase-based Distributed Nearly Real-time Analytical Processing Database System
The paper presents OceanBase Mercury, a distributed nearly real-time OLAP system built on OceanBase, combining adaptive columnar and row-based storage, efficient materialized views, and a vectorized engine to achieve 1.3×–3.1× faster queries than specialized OLAP engines at petabyte scale.
The growing demand for database systems capable of efficiently managing massive datasets while delivering real-time transaction processing and advanced analytical capabilities has become critical in modern data infrastructure. While traditional OLAP systems often fail to meet these dual requirements, emerging real-time analytical processing systems still face persistent challenges, such as excessive data redundancy, complex cross-system synchronization, and suboptimal temporal efficiency. This paper introduces OceanBase Mercury as an innovative OLAP system designed for petabyte-scale data. The system features a distributed, multi-tenant architecture that ensures essential enterprise-grade requirements, including continuous availability and elastic scalability. Our technical contributions include three key components: (1) an adaptive columnar storage format with hybrid data layout optimization, (2) a differential refresh mechanism for materialized views with temporal consistency guarantees, and (3) a polymorphic vectorization engine supporting three distinct data formats. Empirical evaluations under real-world workloads demonstrate that OceanBase Mercury outperforms specialized OLAP engines by 1.3X to 3.1X speedup in query latency while maintaining sub-second latency, positioning it as a groundbreaking AP solution that effectively balances analytical depth with operational agility in big data environments.
Motivation & Objective
- Address the need for a database that supports massive data volumes with near real-time transactional processing and robust analytical capabilities.
- Propose a hybrid storage design that preserves full DML on row stores while enabling analytical speed via columnar baseline data.
- Develop efficient materialized views with full and incremental refresh mechanisms for temporal consistency.
- Create a vectorized execution engine and data formats optimized for hybrid TP/AP workloads.
Proposed method
- Propose a novel adaptive columnar storage within an LSM-tree that keeps baseline data in columnar form and incremental data in row form to support full DML. Two-tier partitioning maps logical partitions to physical tablets for scalable storage. Integrate column store with the existing OceanBase TP engine, enabling TP/AP unified processing with a columnar baseline and row-based increments. Design a vectorized execution engine with three data formats and optimized operators for hybrid layouts. Implement data skipping indices (zone map-like) integrated into SSTables for efficient pruning and statistics. Develop materialized views with full and incremental refresh using hidden tables and mlog-based change tracking.

Experimental results
Research questions
- RQ1How to architect a distributed HTAP system that delivers near real-time analytics on petabyte-scale data without separate OLTP/OLAP infrastructures?
- RQ2Can a hybrid storage model (columnar baseline + row-based incremental) deliver both full DML and analytical performance within a single engine?
- RQ3What mechanisms optimize materialized views for freshness and throughput in a hybrid TP/AP setting?
- RQ4How can a vectorized engine be tailored to support multiple data formats and pushdown in a unified TP/AP system?
Key findings
- OceanBase Mercury achieves sub-second latency while handling petabyte-scale data on distributed clusters.
- The system attains 1.3× to 3.1× speedup in query latency compared with specialized OLAP engines under real-world workloads.
- Adaptive storage and vectorized execution enable true TP/AP synergy without a separate HTAP infrastructure.
- Materialized views support both full and incremental refresh with efficient use of storage and maintenance costs.
- Data skipping indexes and pushdown capabilities reduce I/O and accelerate query processing in the column store.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.