LpBound: Pessimistic Cardinality Estimation Using ℓp-Norms of Degree Sequences
Haozhe Zhang, Christoph Mayer, Mahmoud Abo Khamis, Dan Olteanu, Dan Suciu
摘要
Cardinality estimation is the problem of estimating the size of the output of a query, without actually evaluating the query. The cardinality estimator is a critical piece of a query optimizer, and is often the main culprit when the optimizer chooses a poor plan. This paper introduces LpBound, a pessimistic cardinality estimator for multi-join queries (acyclic or cyclic) with selection predicates and group-by clauses. LpBound computes a guaranteed upper bound on the size of the query output using simple statistics on the input relations, consisting of ℓ p -norms of degree sequences. The bound is the optimal solution of a linear program whose constraints encode data statistics and Shannon inequalities. We introduce two optimizations that exploit the structure of the query in order to speed up the estimation time and make LpBound practical. We experimentally evaluate LpBound against a range of traditional, pessimistic, and machine learning-based estimators on the JOB, STATS, and subgraph matching benchmarks. Our main finding is that LpBound can be orders of magnitude more accurate than traditional estimators used in mainstream open-source and commercial database systems. Yet it has comparable low estimation time and space requirements. When injected the estimates of LpBound , Postgres derives query plans at least as good as those derived using the true cardinalities.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 5 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- CoLSE: A Lightweight and Robust Hybrid Learned Model for Single-Table Cardinality Estimation Using Joint CDF 引用了 FactorJoin: A New Cardinality Estimation Framework for Join Queries
- CoLSE: A Lightweight and Robust Hybrid Learned Model for Single-Table Cardinality Estimation Using Joint CDF 引用了 FLAT: Fast, Lightweight and Accurate Method for Cardinality Estimation
- CoLSE: A Lightweight and Robust Hybrid Learned Model for Single-Table Cardinality Estimation Using Joint CDF 引用了 Cardinality Estimation in DBMS: A Comprehensive Benchmark Evaluation
- Succinct Structure Representations for Efficient Query Optimization 引用了 Cardinality Estimation in DBMS: A Comprehensive Benchmark Evaluation
- FactorJoin: A New Cardinality Estimation Framework for Join Queries 引用了 FLAT: Fast, Lightweight and Accurate Method for Cardinality Estimation
- FactorJoin: A New Cardinality Estimation Framework for Join Queries 引用了 NeuroCard: One Cardinality Estimator for All Tables
- BaCon: Efficient Batch Processing of Counting Queries 引用了 Cardinality Estimation in DBMS: A Comprehensive Benchmark Evaluation
- Robust Predicate Transfer with Dynamic Execution 引用了 FactorJoin: A New Cardinality Estimation Framework for Join Queries
- FLAT: Fast, Lightweight and Accurate Method for Cardinality Estimation 引用了 NeuroCard: One Cardinality Estimator for All Tables
- Cardinality Estimation in DBMS: A Comprehensive Benchmark Evaluation 引用了 FLAT: Fast, Lightweight and Accurate Method for Cardinality Estimation
- Cardinality Estimation in DBMS: A Comprehensive Benchmark Evaluation 引用了 NeuroCard: One Cardinality Estimator for All Tables
引用它的顶会 Paper5
- Robust Predicate Transfer with Dynamic ExecutionYiming Qiao, Peter Boncz, Huanchen ZhangVLDB 2026 · 2 次引用
- CoLSE: A Lightweight and Robust Hybrid Learned Model for Single-Table Cardinality Estimation Using Joint CDFLankadinee Rathuwadu, Guanli Liu, Christopher Leckie, Renata Borovica-GajicICDE 2026
- Succinct Structure Representations for Efficient Query OptimizationZhekai Jiang, Qichen Wang, Christoph KochSIGMOD 2026
- BaCon: Efficient Batch Processing of Counting QueriesYuxi Liu, Xiao Hu, Pankaj K. Agarwal, Jun YangVLDB 2026
- One Join Order Does Not Fit All: Reducing Intermediate Results with Per-Split Query PlansYujun He, Hangdong Zhao, Simon Frisk, Yifei Yang 等VLDB 2026
它引用的 Paper9
- Cardinality Estimation in DBMS: A Comprehensive Benchmark EvaluationYuxing Han, Ziniu Wu, Peizhi Wu, Rong Zhu 等VLDB 2022 · 169 次引用
- In-Memory Subgraph Matching: An In-depth StudyShixuan Sun, Qiong LuoSIGMOD 2020 · 159 次引用
- NeuroCard: One Cardinality Estimator for All TablesZongheng Yang, Amog Kamsetty, Sifei Luan, Eric Liang 等VLDB 2021 · 138 次引用
- FLAT: Fast, Lightweight and Accurate Method for Cardinality EstimationRong Zhu, Ziniu Wu, Yuxing Han, Kai Zeng 等VLDB 2021 · 120 次引用
- FactorJoin: A New Cardinality Estimation Framework for Join QueriesZiniu Wu, Parimarjan Negi, Mohammad Alizadeh, Tim Kraska 等SIGMOD 2023 · 54 次引用
相关 Paper
- CorrBound: Cardinality Estimation Accounting for Inter- and Intra-relation CorrelationsChristoph Mayer, Haozhe Zhang, Mahmoud Abo Khamis, Kyle Deeds 等SIGMOD 2026
- SafeBound: A Practical System for Generating Cardinality BoundsKyle B. Deeds, Dan Suciu, Magdalena BalazinskaSIGMOD 2023 · 19 次引用
- Speeding Up End-to-end Query Execution via Learning-based Progressive Cardinality EstimationFang Wang, Xiao Yan, Man Lung Yiu, Shuai Li 等SIGMOD 2023 · 24 次引用
- Accurate Summary-based Cardinality Estimation Through the Lens of Cardinality Estimation GraphsJeremy Chen, Yuqing Huang, Mushi Wang, Semih Salihoglu 等VLDB 2022 · 30 次引用
- From Single to Multiple Attributes: Experimental Insights on Sampling-Based Distinct Combination Estimation in Group-by QueriesYujie Zhang, Xiaochun Yang, Bin Wang, Yuan SuiICDE 2026
