Lune

SIGMOD2021顶会

Bao: Making Learned Query Optimization Practical

Ryan Marcus, Parimarjan Negi, Hongzi Mao, Nesime Tatbul, Mohammad Alizadeh, Tim Kraska

摘要

Query optimization remains one of the most challenging problems in data management systems. Recent efforts to apply machine learning techniques to query optimization challenges have been promising, but have shown few practical gains due to substantive training overhead, inability to adapt to changes, and poor tail performance. Motivated by these difficulties and drawing upon a long history of research in multi-armed bandits, we introduce Bao (the Bandit optimizer). Bao takes advantage of the wisdom built into existing query optimizers by providing per-query optimization hints. Bao combines modern tree convolutional neural networks with Thompson sampling, a decades-old and well-studied reinforcement learning algorithm. As a result, Bao automatically learns from its mistakes and adapts to changes in query workloads, data, and schema. Experimentally, we demonstrate that Bao can quickly (an order of magnitude faster than previous approaches) learn strategies that improve end-to-end query execution performance, including tail latency. In cloud environments, we show that Bao can offer both reduced costs and better performance compared with a sophisticated commercial system.

问 Lune

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

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

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

可以从这些问题问起

Lune 可以查阅

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

获取答案

免费开始,无需绑卡

脉络

  • Lero: A Learning-to-Rank Query Optimizer 引用了 Deep Unsupervised Cardinality Estimation
  • Lero: A Learning-to-Rank Query Optimizer 引用了 An End-to-End Learning-based Cost Estimator
  • Zero-Shot Cost Models for Out-of-the-box Learned Cost Prediction 引用了 An End-to-End Learning-based Cost Estimator
  • 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
  • QueryFormer: A Tree Transformer Model for Query Plan Representation 引用了 QuickSel: Quick Selectivity Learning with Mixture Models
  • QueryFormer: A Tree Transformer Model for Query Plan Representation 引用了 An End-to-End Learning-based Cost Estimator
  • Balsa: Learning a Query Optimizer Without Expert Demonstrations 引用了 Deep Unsupervised Cardinality Estimation
  • Balsa: Learning a Query Optimizer Without Expert Demonstrations 引用了 An End-to-End Learning-based Cost Estimator
  • Deep Unsupervised Cardinality Estimation 引用了 QuickSel: Quick Selectivity Learning with Mixture Models
  • QuickSel: Quick Selectivity Learning with Mixture Models 引用了 Deep Unsupervised Cardinality Estimation
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper95

  1. QueryFormer: A Tree Transformer Model for Query Plan RepresentationYue Zhao, Gao Cong, Jiachen Shi, Chunyan MiaoVLDB 2022 · 117 次引用
  2. Lero: A Learning-to-Rank Query OptimizerRong Zhu, Wei Chen, Bolin Ding, Xingguang Chen 等VLDB 2023 · 102 次引用
  3. Balsa: Learning a Query Optimizer Without Expert DemonstrationsZongheng Yang, Wei-Lin Chiang, Sifei Luan, Gautam Mittal 等SIGMOD 2022 · 99 次引用
  4. Zero-Shot Cost Models for Out-of-the-box Learned Cost PredictionBenjamin Hilprecht, Carsten BinnigVLDB 2022 · 90 次引用
  5. Robust Query Driven Cardinality Estimation under Changing WorkloadsParimarjan Negi, Ziniu Wu, Andreas Kipf, Nesime Tatbul 等VLDB 2023 · 88 次引用

它引用的 Paper3

  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. QuickSel: Quick Selectivity Learning with Mixture ModelsYongjoo Park, Shucheng Zhong, Barzan MozafariSIGMOD 2020 · 66 次引用

相关 Paper

  1. Bayesian Optimization for Categorical and Category-Specific Continuous InputsDang Nguyen, Sunil Gupta, Santu Rana, Alistair Shilton 等AAAI 2020 · 59 次引用
  2. FOSS: A Self-Learned Doctor for Query OptimizerKai Zhong, Luming Sun, Tao Ji, Cuiping Li 等ICDE 2024 · 5 次引用
  3. Low Rank Learning for Offline Query OptimizationZixuan Yi, Yao Tian, Zachary G. Ives, Ryan MarcusSIGMOD 2025 · 4 次引用
  4. LIMAO: A Framework for Lifelong Modular Learned Query OptimizationQihan Zhang, Shaolin Xie, Ibrahim SabekVLDB 2025 · 4 次引用
  5. Reqo: A Comprehensive Learning-Based Cost Model for Robust and Explainable Query OptimizationBaoming Chang, Amin Kamali, Verena KantereSIGMOD 2026 · 1 次引用
黄昏的海面,两侧是细线勾勒的悬崖