Lune

VLDB2022顶会

Learned Cardinality Estimation: A Design Space Exploration and A Comparative Evaluation

Ji Sun, Jintao Zhang, Zhaoyan Sun, Guoliang Li, Nan Tang

摘要

Cardinality estimation is core to the query optimizers of DBMSs. Non-learned methods, especially based on histograms and samplings, have been widely used in commercial and open-source DBMSs. Nevertheless, histograms and samplings can only be used to summarize one or few columns, which fall short of capturing the joint data distribution over an arbitrary combination of columns, because of the oversimplification of histograms and samplings over the original relational table(s). Consequently, these traditional methods typically make bad predictions for hard cases such as queries over multiple columns, with multiple predicates, and joins between multiple tables. Recently, learned cardinality estimators have been widely studied. Because these learned estimators can better capture the data distribution and query characteristics, empowered by the recent advance of (deep learning) models, they outperform non-learned methods on many cases. The goals of this paper are to provide a design space exploration of learned cardinality estimators and to have a comprehensive comparison of the SOTA learned approaches so as to provide a guidance for practitioners to decide what method to use under various practical scenarios.

问 Lune

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

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

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

可以从这些问题问起

Lune 可以查阅

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

获取答案

免费开始,无需绑卡

脉络

  • Are We Ready For Learned Cardinality Estimation? 引用了 Deep Unsupervised Cardinality Estimation
  • Are We Ready For Learned Cardinality Estimation? 引用了 An End-to-End Learning-based Cost Estimator
  • Are We Ready For Learned Cardinality Estimation? 引用了 Reinforcement Learning with Tree-LSTM for Join Order Selection
  • Are We Ready For Learned Cardinality Estimation? 引用了 NeuroCard: One Cardinality Estimator for All Tables
  • ALECE: An Attention-based Learned Cardinality Estimator for SPJ Queries on Dynamic Workloads 引用了 Are We Ready For Learned Cardinality Estimation?
  • ALECE: An Attention-based Learned Cardinality Estimator for SPJ Queries on Dynamic Workloads 引用了 Deep Unsupervised Cardinality Estimation
  • ALECE: An Attention-based Learned Cardinality Estimator for SPJ Queries on Dynamic Workloads 引用了 NeuroCard: One Cardinality Estimator for All Tables
  • A Learned Query Rewrite System using Monte Carlo Tree Search 引用了 Deep Unsupervised Cardinality Estimation
  • A Learned Query Rewrite System using Monte Carlo Tree Search 引用了 An End-to-End Learning-based Cost Estimator
  • A Learned Query Rewrite System using Monte Carlo Tree Search 引用了 Reinforcement Learning with Tree-LSTM for Join Order Selection
  • An End-to-End Learning-based Cost Estimator 引用了 Reinforcement Learning with Tree-LSTM for Join Order Selection
  • Reinforcement Learning with Tree-LSTM for Join Order Selection 引用了 An End-to-End Learning-based Cost Estimator
  • Cost-based or Learning-based? A Hybrid Query Optimizer for Query Plan Selection 引用了 A Learned Query Rewrite System using Monte Carlo Tree Search
  • Cost-based or Learning-based? A Hybrid Query Optimizer for Query Plan Selection 引用了 Deep Unsupervised Cardinality Estimation
  • Cost-based or Learning-based? A Hybrid Query Optimizer for Query Plan Selection 引用了 An End-to-End Learning-based Cost Estimator
  • Cost-based or Learning-based? A Hybrid Query Optimizer for Query Plan Selection 引用了 Reinforcement Learning with Tree-LSTM for Join Order Selection
  • Cost-based or Learning-based? A Hybrid Query Optimizer for Query Plan Selection 引用了 NeuroCard: One Cardinality Estimator for All Tables
  • Learned Index: A Comprehensive Experimental Evaluation 引用了 Reinforcement Learning with Tree-LSTM for Join Order Selection
  • Learned Index: A Comprehensive Experimental Evaluation 引用了 Cost-based or Learning-based? A Hybrid Query Optimizer for Query Plan Selection
  • NeuroCard: One Cardinality Estimator for All Tables 引用了 Deep Unsupervised Cardinality Estimation
  • 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 引用了 Deep Unsupervised Cardinality Estimation
  • Kepler: Robust Learning for Parametric Query Optimization 引用了 NeuroCard: One Cardinality Estimator for All Tables
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper33

  1. Learned Index: A Comprehensive Experimental EvaluationZhaoyan Sun, Xuanhe Zhou, Guoliang LiVLDB 2023 · 87 次引用
  2. A Learned Query Rewrite System using Monte Carlo Tree SearchXuanhe Zhou, Guoliang Li, Chengliang Chai, Jianhua FengVLDB 2022 · 85 次引用
  3. Cost-based or Learning-based? A Hybrid Query Optimizer for Query Plan SelectionXiang Yu, Chengliang Chai, Guoliang Li, Jiabin LiuVLDB 2022 · 82 次引用
  4. ALECE: An Attention-based Learned Cardinality Estimator for SPJ Queries on Dynamic WorkloadsPengfei Li, Wenqing Wei, Rong Zhu, Bolin Ding 等VLDB 2024 · 50 次引用
  5. Kepler: Robust Learning for Parametric Query OptimizationLyric Doshi, Vincent Zhuang, Gaurav Jain, Ryan Marcus 等SIGMOD 2023 · 35 次引用

它引用的 Paper8

  1. An End-to-End Learning-based Cost EstimatorJi Sun, Guoliang LiVLDB 2020 · 251 次引用
  2. Deep Unsupervised Cardinality EstimationZongheng Yang, Eric Liang, Amog Kamsetty, Chenggang Wu 等VLDB 2020 · 206 次引用
  3. Reinforcement Learning with Tree-LSTM for Join Order SelectionXiang Yu, Guoliang Li, Chengliang Chai, Nan TangICDE 2020 · 168 次引用
  4. Are We Ready For Learned Cardinality Estimation?Xiaoying Wang, Changbo Qu, Weiyuan Wu, Jiannan Wang 等VLDB 2021 · 156 次引用
  5. NeuroCard: One Cardinality Estimator for All TablesZongheng Yang, Amog Kamsetty, Sifei Luan, Eric Liang 等VLDB 2021 · 138 次引用

相关 Paper

  1. Learned Cardinality Estimation: An In-depth StudyKyoungmin Kim, Jisung Jung, In Seo, Wook-Shin Han 等SIGMOD 2022 · 51 次引用
  2. Deep Learning Models for Selectivity Estimation of Multi-Attribute QueriesShohedul Hasan, Saravanan Thirumuruganathan, Jees Augustine, Nick Koudas 等SIGMOD 2020 · 101 次引用
  3. Sample-Efficient Cardinality Estimation Using Geometric Deep LearningSilvan Reiner, Michael GrossniklausVLDB 2024 · 20 次引用
  4. Cardinality Estimation of Approximate Substring Queries using Deep LearningSuyong Kwon, Woohwan Jung, Kyuseok ShimVLDB 2022 · 10 次引用
  5. Monotonic Cardinality Estimation of Similarity Selection: A Deep Learning ApproachYaoshu Wang, Chuan Xiao, Jianbin Qin, Xin Cao 等SIGMOD 2020 · 19 次引用
黄昏的海面,两侧是细线勾勒的悬崖