Rethink Query Optimization in HTAP Databases
Haoze Song, Wenchao Zhou, Feifei Li, Xiang Peng, Heming Cui
Abstract
The advent of data-intensive applications has fueled the evolution of hybrid transactional and analytical processing (HTAP). To support mixed workloads, distributed HTAP databases typically maintain two data copies that are specially tailored for data freshness and performance isolation. In particular, a copy in a row-oriented format is well-suited for OLTP workloads, and a second copy in a column-oriented format is optimized for OLAP workloads. Such a hybrid design opens up a new design space for query optimization: plans can be optimized over different data formats and can be executed over isolated resources, which we term hybrid plans. In this paper, we demonstrate that hybrid plans can largely benefit query execution (e.g., up to 11x speedups in our evaluation). However, we also found these benefits will potentially be at the cost of sacrificing data freshness or performance isolation since traditional optimizers may not precisely model and schedule the execution of hybrid plans on real-time updated HTAP databases. Therefore, we propose Metis, an HTAP-aware optimizer. We show, both theoretically and experimentally, that using the proposed optimizations, a system can largely benefit from hybrid plans while preserving isolated performance for OLTP and OLAP, and these optimizations are robust to the changes in workloads.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
3 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- PUSHtap: PIM-based In-Memory HTAP with Unified Data Storage Format cites How Good is My HTAP System?
- Breaking the Isolation-Freshness Trade-off: Joint Adaptive Storage Optimization for HTAP Systems cites Proteus: Autonomous Adaptive Storage for Mixed Workloads
Cited by top-tier papers3
- PUSHtap: PIM-based In-Memory HTAP with Unified Data Storage FormatYilong Zhao, Mingyu Gao, Huanchen Zhang, Fangxin Liu et al.ASPLOS 2025 · 4 citations
- Breaking the Isolation-Freshness Trade-off: Joint Adaptive Storage Optimization for HTAP SystemsZhenghao Ding, Xinyi Zhang, Chao Zhang, Yishen Sun et al.VLDB 2026 · 1 citation
- AQD: Online Adaptive Query Dispatcher for HTAP DatabasesYang Wu, Tongliang Li, Xuanhe Zhou, Jianying Wang et al.VLDB 2026
Builds on8
- Lethe: A Tunable Delete-Aware LSM EngineSubhadeep Sarkar, Tarikul Islam Papon, Dimitris Staratzis, Manos AthanassoulisSIGMOD 2020 · 68 citations
- Achieving low tail-latency and high scalability for serializable transactions in edge computingXusheng Chen, Haoze Song, Jianyu Jiang, Chaoyi Ruan et al.EuroSys 2021 · 32 citations
- How Good is My HTAP System?Elena Milkai, Yannis Chronis, Kevin P. Gaffney, Zhihan Guo et al.SIGMOD 2022 · 21 citations
- Retrofitting High Availability Mechanism to Tame Hybrid Transaction/Analytical ProcessingSijie Shen, Rong Chen, Haibo Chen, Binyu ZangOSDI 2021 · 20 citations
- Proteus: Autonomous Adaptive Storage for Mixed WorkloadsMichael Abebe, Horatiu Lazu, Khuzaima DaudjeeSIGMOD 2022 · 20 citations
Related papers
- HyBench: A New Benchmark for HTAP DatabasesChao Zhang, Guoliang Li, Tao LvVLDB 2024 · 28 citations
- OLxPBench: Real-time, Semantically Consistent, and Domain-specific are Essential in Benchmarking, Designing, and Implementing HTAP SystemsGuoxin Kang, Lei Wang, Wanling Gao, Fei Tang et al.ICDE 2022 · 11 citations
- TiQuE: Improving the Transactional Performance of Analytical Systems for True Hybrid WorkloadsNuno Faria, José Pereira, Ana Nunes Alonso, Ricardo Vilaça et al.VLDB 2023 · 6 citations
- Scalable Garbage Collection for In-Memory MVCC SystemsJan Böttcher, Viktor Leis, Thomas Neumann, Alfons KemperVLDB 2020 · 50 citations
- Perseus: Achieving Strong Consistency and High Data Freshness for Scalable Geo-distributed HTAPHaoze Song, Xusheng Chen, Ruijie Gong, Zekai Sun et al.SIGMOD 2026 · 2 citations
