Is it Bigger than a Breadbox: Efficient Cardinality Estimation for Real World Workloads
Not on the map. Why?
Abstract (arXiv)
DB engines produce efficient query execution plans by relying on cost models. Practical implementations estimate cardinality of queries using heuristics, with magic numbers tuned to improve average performance on benchmarks. Empirically, estimation error significantly grows with query complexity. Alternatively, learning-based estimators offer improved accuracy, but add operational complexity preventing their adoption in-practice. Recognizing that query workloads contain highly repetitive subquery patterns, we learn many simple regressors online, each localized to a pattern. The regressor corresponding to a pattern can be randomly-accessed using hash of graph structure of the subquery. Our method has negligible overhead and competes with SoTA learning-based approaches on error metrics. Further, amending PostgreSQL with our method achieves notable accuracy and runtime improvements over traditional methods and drastically reduces operational costs compared to other learned cardinality estimators, thereby offering the most practical and efficient solution on the Pareto frontier. Concretely, simulating JOB-lite workload on IMDb speeds-up execution by 7.5 minutes (>30%) while incurring only 37 seconds overhead for online learning.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 9 of its 33 references that are in the map. First posted on arXiv 3 Oct 2025.
Builds on
9 of 33 references.
References · 9
- 2018Learned Cardinalities: Estimating Correlated Joins with Deep Learningcited by 64
- 2019An End-to-End Learning-based Cost Estimatorcited by 43
- 2021Cardinality Estimation in DBMS: A Comprehensive Benchmark Evaluationcited by 30
- 2020FLAT: Fast, Lightweight and Accurate Method for Cardinality Estimationcited by 22
- 2020Are We Ready For Learned Cardinality Estimation?cited by 19
- 2022FactorJoin: A New Cardinality Estimation Framework for Join Queriescited by 13
- 2022Yggdrasil Decision Forests: A Fast and Extensible Decision Forests Librarycited by 12
- 2024PRICE: A Pretrained Model for Cross-Database Cardinality Estimationcited by 8
- 2024CardBench: A Benchmark for Learned Cardinality Estimation in Relational Databasescited by 4
Built on by
Citing papers per year: 2025: 1.
1 paper.