Efficiently Approximating Selectivity Functions using Low Overhead Regression Models
Anshuman Dutt, Chi Wang, Vivek R. Narasayya, Surajit Chaudhuri
摘要
Today's query optimizers use fast selectivity estimation techniques but are known to be susceptible to large estimation errors. Recent work on supervised learned models for selectivity estimation significantly improves accuracy while ensuring relatively low estimation overhead. However, these models impose significant model construction cost as they need large numbers of training examples and computing selectivity labels is costly for large datasets. We propose a novel model construction method that incrementally generates training data and uses approximate selectivity labels, that reduces total construction cost by an order of magnitude while preserving most of the accuracy gains. The proposed method is particularly attractive for model designs that are faster-to-train for a given number of training examples, but such models are known to support a limited class of query expressions. We broaden the applicability of such supervised models to the class of select-project-join query expressions with range predicates and IN clauses. Our extensive evaluation on synthetic benchmark and real-world queries shows that the 95th-percentile error of our proposed models is 10-100X better than traditional selectivity estimators. We also demonstrate significant gains in plan quality as a result of improved selectivity estimates.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 19 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Robust Query Driven Cardinality Estimation under Changing Workloads 引用了 Are We Ready For Learned Cardinality Estimation?
- Robust Query Driven Cardinality Estimation under Changing Workloads 引用了 Fauce: Fast and Accurate Deep Ensembles with Uncertainty for Cardinality Estimation
- Robust Query Driven Cardinality Estimation under Changing Workloads 引用了 Deep Unsupervised Cardinality Estimation
- Robust Query Driven Cardinality Estimation under Changing Workloads 引用了 QuickSel: Quick Selectivity Learning with Mixture Models
- Robust Query Driven Cardinality Estimation under Changing Workloads 引用了 Flow-Loss: Learning Cardinality Estimates That Matter
- Are We Ready For Learned Cardinality Estimation? 引用了 Deep Unsupervised Cardinality Estimation
- Are We Ready For Learned Cardinality Estimation? 引用了 QuickSel: Quick Selectivity Learning with Mixture Models
- Fauce: Fast and Accurate Deep Ensembles with Uncertainty for Cardinality Estimation 引用了 Are We Ready For Learned Cardinality Estimation?
- Fauce: Fast and Accurate Deep Ensembles with Uncertainty for Cardinality Estimation 引用了 Deep Unsupervised Cardinality Estimation
- Fauce: Fast and Accurate Deep Ensembles with Uncertainty for Cardinality Estimation 引用了 Flow-Loss: Learning Cardinality Estimates That Matter
- Deep Unsupervised Cardinality Estimation 引用了 QuickSel: Quick Selectivity Learning with Mixture Models
- QuickSel: Quick Selectivity Learning with Mixture Models 引用了 Deep Unsupervised Cardinality Estimation
- Flow-Loss: Learning Cardinality Estimates That Matter 引用了 Are We Ready For Learned Cardinality Estimation?
- Flow-Loss: Learning Cardinality Estimates That Matter 引用了 Deep Unsupervised Cardinality Estimation
- Flow-Loss: Learning Cardinality Estimates That Matter 引用了 QuickSel: Quick Selectivity Learning with Mixture Models
引用它的顶会 Paper19
- Are We Ready For Learned Cardinality Estimation?Xiaoying Wang, Changbo Qu, Weiyuan Wu, Jiannan Wang 等VLDB 2021 · 156 次引用
- Flow-Loss: Learning Cardinality Estimates That MatterParimarjan Negi, Ryan Marcus, Andreas Kipf, Hongzi Mao 等VLDB 2021 · 102 次引用
- Robust Query Driven Cardinality Estimation under Changing WorkloadsParimarjan Negi, Ziniu Wu, Andreas Kipf, Nesime Tatbul 等VLDB 2023 · 88 次引用
- Fauce: Fast and Accurate Deep Ensembles with Uncertainty for Cardinality EstimationJie Liu, Wenqian Dong, Dong Li, Qingqing ZhouVLDB 2021 · 71 次引用
- DSB: A Decision Support Benchmark for Workload-Driven and Traditional Database SystemsBailu Ding, Surajit Chaudhuri, Johannes Gehrke, Vivek R. NarasayyaVLDB 2021 · 62 次引用
它引用的 Paper3
- Deep Unsupervised Cardinality EstimationZongheng Yang, Eric Liang, Amog Kamsetty, Chenggang Wu 等VLDB 2020 · 206 次引用
- QuickSel: Quick Selectivity Learning with Mixture ModelsYongjoo Park, Shucheng Zhong, Barzan MozafariSIGMOD 2020 · 66 次引用
- Efficient Join Synopsis Maintenance for Data WarehouseZhuoyue Zhao, Feifei Li, Yuxi LiuSIGMOD 2020 · 19 次引用
相关 Paper
- Deep Learning Models for Selectivity Estimation of Multi-Attribute QueriesShohedul Hasan, Saravanan Thirumuruganathan, Jees Augustine, Nick Koudas 等SIGMOD 2020 · 101 次引用
- Speeding Up End-to-end Query Execution via Learning-based Progressive Cardinality EstimationFang Wang, Xiao Yan, Man Lung Yiu, Shuai Li 等SIGMOD 2023 · 24 次引用
- How Good are Learned Cost Models, Really? Insights from Query Optimization TasksRoman Heinrich, Manisha Luthra, Johannes Wehrstein, Harald Kornmayer 等SIGMOD 2025 · 13 次引用
- Warper: Efficiently Adapting Learned Cardinality Estimators to Data and Workload DriftsBeibin Li, Yao Lu, Srikanth KandulaSIGMOD 2022 · 29 次引用
- LEAP: A Low-cost Spark SQL Query Optimizer using Pairwise ComparisonJunhao Ye, Jiahui Li, Lu Chen, Yuren Mao 等VLDB 2025 · 2 次引用
