Lune

VLDB2021顶会

FLAT: Fast, Lightweight and Accurate Method for Cardinality Estimation

Rong Zhu, Ziniu Wu, Yuxing Han, Kai Zeng, Andreas Pfadler, Zhengping Qian, Jingren Zhou, Bin Cui

摘要

Query optimizers rely on accurate cardinality estimation (CardEst) to produce good execution plans. The core problem of CardEst is how to model the rich joint distribution of attributes in an accurate and compact manner. Despite decades of research, existing methods either over-simplify the models only using independent factorization which leads to inaccurate estimates, or over-complicate them by lossless conditional factorization without any independent assumption which results in slow probability computation. In this paper, we propose FLAT, a CardEst method that is simultaneously fast in probability computation, lightweight in model size and accurate in estimation quality. The key idea of FLAT is a novel unsupervised graphical model, called FSPN. It utilizes both independent and conditional factorization to adaptively model different levels of attributes correlations, and thus combines their advantages. FLAT supports efficient online probability computation in near linear time on the underlying FSPN model, provides effective offline model construction and enables incremental model updates. It can estimate cardinality for both single table queries and multitable join queries. Extensive experimental study demonstrates the superiority of FLAT over existing CardEst methods: FLAT achieves 1-5 orders of magnitude better accuracy, 1-3 orders of magnitude faster probability computation speed and 1-2 orders of magnitude lower storage cost. We also integrate FLAT into Postgres to perform an end-to-end test. It improves the query execution time by 12.9% on the well-known IMDB benchmark workload, which is very close to the optimal result 14.2% using the true cardinality.

问 Lune

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

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

已有 43 篇顶会 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 引用了 Fauce: Fast and Accurate Deep Ensembles with Uncertainty for Cardinality Estimation
  • Lero: A Learning-to-Rank Query Optimizer 引用了 Cardinality Estimation in DBMS: A Comprehensive Benchmark Evaluation
  • Lero: A Learning-to-Rank Query Optimizer 引用了 NeuroCard: One Cardinality Estimator for All Tables
  • FactorJoin: A New Cardinality Estimation Framework for Join Queries 引用了 DeepDB: Learn from Data, not from Queries!
  • FactorJoin: A New Cardinality Estimation Framework for Join Queries 引用了 Fauce: Fast and Accurate Deep Ensembles with Uncertainty for Cardinality Estimation
  • FactorJoin: A New Cardinality Estimation Framework for Join Queries 引用了 NeuroCard: One Cardinality Estimator for All Tables
  • Robust Query Driven Cardinality Estimation under Changing Workloads 引用了 FactorJoin: A New Cardinality Estimation Framework for Join Queries
  • 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 引用了 Fauce: Fast and Accurate Deep Ensembles with Uncertainty for Cardinality Estimation
  • Robust Query Driven Cardinality Estimation under Changing Workloads 引用了 Cardinality Estimation in DBMS: A Comprehensive Benchmark Evaluation
  • Robust Query Driven Cardinality Estimation under Changing Workloads 引用了 NeuroCard: One Cardinality Estimator for All Tables
  • Are We Ready For Learned Cardinality Estimation? 引用了 Approximate Query Processing for Data Exploration using Deep Generative Models
  • Are We Ready For Learned Cardinality Estimation? 引用了 NeuroCard: One Cardinality Estimator for All Tables
  • 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 引用了 DeepDB: Learn from Data, not from Queries!
  • Fauce: Fast and Accurate Deep Ensembles with Uncertainty for Cardinality Estimation 引用了 Learning Multi-Dimensional Indexes
  • Fauce: Fast and Accurate Deep Ensembles with Uncertainty for Cardinality Estimation 引用了 NeuroCard: One Cardinality Estimator for All Tables
  • Cardinality Estimation in DBMS: A Comprehensive Benchmark Evaluation 引用了 Are We Ready For Learned Cardinality Estimation?
  • Cardinality Estimation in DBMS: A Comprehensive Benchmark Evaluation 引用了 DeepDB: Learn from Data, not from Queries!
  • Cardinality Estimation in DBMS: A Comprehensive Benchmark Evaluation 引用了 NeuroCard: One Cardinality Estimator for All Tables
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper43

  1. Cardinality Estimation in DBMS: A Comprehensive Benchmark EvaluationYuxing Han, Ziniu Wu, Peizhi Wu, Rong Zhu 等VLDB 2022 · 169 次引用
  2. Lero: A Learning-to-Rank Query OptimizerRong Zhu, Wei Chen, Bolin Ding, Xingguang Chen 等VLDB 2023 · 102 次引用
  3. Robust Query Driven Cardinality Estimation under Changing WorkloadsParimarjan Negi, Ziniu Wu, Andreas Kipf, Nesime Tatbul 等VLDB 2023 · 88 次引用
  4. Fauce: Fast and Accurate Deep Ensembles with Uncertainty for Cardinality EstimationJie Liu, Wenqian Dong, Dong Li, Qingqing ZhouVLDB 2021 · 71 次引用
  5. FactorJoin: A New Cardinality Estimation Framework for Join QueriesZiniu Wu, Parimarjan Negi, Mohammad Alizadeh, Tim Kraska 等SIGMOD 2023 · 54 次引用

它引用的 Paper6

  1. Learning Multi-Dimensional IndexesVikram Nathan, Jialin Ding, Mohammad Alizadeh, Tim KraskaSIGMOD 2020 · 180 次引用
  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. Approximate Query Processing for Data Exploration using Deep Generative ModelsSaravanan Thirumuruganathan, Shohedul Hasan, Nick Koudas, Gautam DasICDE 2020 · 54 次引用

相关 Paper

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