Lune

VLDB2022顶会

Cardinality Estimation in DBMS: A Comprehensive Benchmark Evaluation

Yuxing Han, Ziniu Wu, Peizhi Wu, Rong Zhu, Jingyi Yang, Liang Wei Tan, Kai Zeng, Gao Cong, Yanzhao Qin, Andreas Pfadler, Zhengping Qian, Jingren Zhou

摘要

Cardinality estimation (CardEst) plays a significant role in generating high-quality query plans for a query optimizer in DBMS. In the last decade, an increasing number of advanced CardEst methods (especially ML-based) have been proposed with outstanding estimation accuracy and inference latency. However, there exists no study that systematically evaluates the quality of these methods and answer the fundamental problem: to what extent can these methods improve the performance of query optimizer in real-world settings, which is the ultimate goal of a CardEst method. In this paper, we comprehensively and systematically compare the effectiveness of CardEst methods in a real DBMS. We establish a new benchmark for CardEst, which contains a new complex real-world dataset STATS and a diverse query workload STATS-CEB. We integrate multiple most representative CardEst methods into an open-source database system PostgreSQL, and comprehensively evaluate their true effectiveness in improving query plan quality, and other important aspects affecting their applicability, ranging from inference latency, model size, and training time, to update efficiency and accuracy. We obtain a number of key findings for the CardEst methods, under different data and query settings. Furthermore, we find that the widely used estimation accuracy metric (Q-Error) cannot distinguish the importance of different sub-plan queries during query optimization and thus cannot truly reflect the query plan quality generated by CardEst methods. Therefore, we propose a new metric P-Error to evaluate the performance of CardEst methods, which overcomes the limitation of Q-Error and is able to reflect the overall end-to-end performance of CardEst methods. We have made all of the benchmark data and evaluation code publicly available at h ps://github.com/Nathaniel-Han/End-to-End-CardEst-Benchmark.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 54 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Lero: A Learning-to-Rank Query Optimizer 引用了 Are We Ready For Learned Cardinality Estimation?
  • Lero: A Learning-to-Rank Query Optimizer 引用了 DeepDB: Learn from Data, not from Queries!
  • Lero: A Learning-to-Rank Query Optimizer 引用了 FLAT: Fast, Lightweight and Accurate Method for Cardinality Estimation
  • Lero: A Learning-to-Rank Query Optimizer 引用了 An End-to-End Learning-based Cost Estimator
  • Lero: A Learning-to-Rank Query Optimizer 引用了 NeuroCard: One Cardinality Estimator for All Tables
  • Robust Query Driven Cardinality Estimation under Changing Workloads 引用了 Are We Ready For Learned Cardinality Estimation?
  • Robust Query Driven Cardinality Estimation under Changing Workloads 引用了 DeepDB: Learn from Data, not from Queries!
  • Robust Query Driven Cardinality Estimation under Changing Workloads 引用了 FLAT: Fast, Lightweight and Accurate Method for Cardinality Estimation
  • Robust Query Driven Cardinality Estimation under Changing Workloads 引用了 NeuroCard: One Cardinality Estimator for All Tables
  • Are We Ready For Learned Cardinality Estimation? 引用了 An End-to-End Learning-based Cost Estimator
  • Are We Ready For Learned Cardinality Estimation? 引用了 NeuroCard: One Cardinality Estimator for All Tables
  • DeepDB: Learn from Data, not from Queries! 引用了 An End-to-End Learning-based Cost Estimator
  • FLAT: Fast, Lightweight and Accurate Method for Cardinality Estimation 引用了 Are We Ready For Learned Cardinality Estimation?
  • FLAT: Fast, Lightweight and Accurate Method for Cardinality Estimation 引用了 DeepDB: Learn from Data, not from Queries!
  • FLAT: Fast, Lightweight and Accurate Method for Cardinality Estimation 引用了 NeuroCard: One Cardinality Estimator for All Tables
  • LEON: A New Framework for ML-Aided Query Optimization 引用了 FLAT: Fast, Lightweight and Accurate Method for Cardinality Estimation
  • LEON: A New Framework for ML-Aided Query Optimization 引用了 An End-to-End Learning-based Cost Estimator
  • LEON: A New Framework for ML-Aided Query Optimization 引用了 NeuroCard: One Cardinality Estimator for All Tables
  • NeuroCard: One Cardinality Estimator for All Tables 引用了 An End-to-End Learning-based Cost Estimator
  • Kepler: Robust Learning for Parametric Query Optimization 引用了 Are We Ready For Learned Cardinality Estimation?
  • Kepler: Robust Learning for Parametric Query Optimization 引用了 NeuroCard: One Cardinality Estimator for All Tables
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper54

  1. Lero: A Learning-to-Rank Query OptimizerRong Zhu, Wei Chen, Bolin Ding, Xingguang Chen 等VLDB 2023 · 102 次引用
  2. Robust Query Driven Cardinality Estimation under Changing WorkloadsParimarjan Negi, Ziniu Wu, Andreas Kipf, Nesime Tatbul 等VLDB 2023 · 88 次引用
  3. LEON: A New Framework for ML-Aided Query OptimizationXu Chen, Haitian Chen, Zibo Liang, Shuncheng Liu 等VLDB 2023 · 52 次引用
  4. Opportunities for Quantum Acceleration of Databases: Optimization of Queries and Transaction SchedulesUmut Çalikyilmaz, Sven Groppe, Jinghua Groppe, Tobias Winker 等VLDB 2023 · 38 次引用
  5. Kepler: Robust Learning for Parametric Query OptimizationLyric Doshi, Vincent Zhuang, Gaurav Jain, Ryan Marcus 等SIGMOD 2023 · 35 次引用

它引用的 Paper13

  1. An End-to-End Learning-based Cost EstimatorJi Sun, Guoliang LiVLDB 2020 · 251 次引用
  2. Are We Ready For Learned Cardinality Estimation?Xiaoying Wang, Changbo Qu, Weiyuan Wu, Jiannan Wang 等VLDB 2021 · 156 次引用
  3. DeepDB: Learn from Data, not from Queries!Benjamin Hilprecht, Andreas Schmidt, Moritz Kulessa, Alejandro Molina 等VLDB 2020 · 154 次引用
  4. NeuroCard: One Cardinality Estimator for All TablesZongheng Yang, Amog Kamsetty, Sifei Luan, Eric Liang 等VLDB 2021 · 138 次引用
  5. FLAT: Fast, Lightweight and Accurate Method for Cardinality EstimationRong Zhu, Ziniu Wu, Yuxing Han, Kai Zeng 等VLDB 2021 · 120 次引用

相关 Paper

  1. Flow-Loss: Learning Cardinality Estimates That MatterParimarjan Negi, Ryan Marcus, Andreas Kipf, Hongzi Mao 等VLDB 2021 · 102 次引用
  2. PRICE: A Pretrained Model for Cross-Database Cardinality EstimationTianjing Zeng, Junwei Lan, Jiahong Ma, Wenqing Wei 等VLDB 2025 · 14 次引用
  3. Speeding Up End-to-end Query Execution via Learning-based Progressive Cardinality EstimationFang Wang, Xiao Yan, Man Lung Yiu, Shuai Li 等SIGMOD 2023 · 24 次引用
  4. LpBound: Pessimistic Cardinality Estimation Using ℓp-Norms of Degree SequencesHaozhe Zhang, Christoph Mayer, Mahmoud Abo Khamis, Dan Olteanu 等SIGMOD 2025 · 7 次引用
  5. FACE: A Normalizing Flow based Cardinality EstimatorJiayi Wang, Chengliang Chai, Jiabin Liu, Guoliang LiVLDB 2022
黄昏的海面,两侧是细线勾勒的悬崖