AutoSteer: Learned Query Optimization for Any SQL Database

Author:

Anneser Christoph1,Tatbul Nesime2,Cohen David3,Xu Zhenggang4,Pandian Prithviraj4,Laptev Nikolay4,Marcus Ryan5

Affiliation:

1. Technical University of Munich

2. Intel Labs and MIT

3. Intel

4. Meta

5. University of Pennsylvania

Abstract

This paper presents AutoSteer, a learning-based solution that automatically drives query optimization in any SQL database that exposes tunable optimizer knobs. AutoSteer builds on the Bandit optimizer (Bao) and extends it with new capabilities (e.g., automated hint-set discovery) to minimize integration effort and facilitate usability in both monolithic and disaggregated SQL systems. We successfully applied AutoSteer on PostgreSQL, PrestoDB, Spark-SQL, MySQL, and DuckDB - five popular open-source database engines with diverse query optimizers. We then conducted a detailed experimental evaluation with public benchmarks (JOB, Stackoverflow, TPC-DS) and a production workload from Meta's PrestoDB deployments. Our evaluation shows that AutoSteer can not only outperform these engines' native query optimizers (e.g., up to 40% improvements for PrestoDB) but can also match the performance of Bao-for-PostgreSQL with reduced human supervision and increased adaptivity, as it replaces Bao's static, expert-picked hint-sets with those that are automatically discovered. We also provide an open-source implementation of AutoSteer together with a visual tool for interactive use by query optimization experts.

Publisher

Association for Computing Machinery (ACM)

Subject

General Earth and Planetary Sciences,Water Science and Technology,Geography, Planning and Development

Reference51 articles.

1. 2020. Bao for PostgreSQL. https://github.com/learnedsystems/BaoForPostgreSQL [Last Accessed: 2023/08/02]. 2020. Bao for PostgreSQL. https://github.com/learnedsystems/BaoForPostgreSQL [Last Accessed: 2023/08/02].

2. 2020. Solving Query Optimization in Presto. https://www.infoworld.com/article/3587781/solving-query-optimization-in-presto.html [Last Accessed: 2023/08/02]. 2020. Solving Query Optimization in Presto. https://www.infoworld.com/article/3587781/solving-query-optimization-in-presto.html [Last Accessed: 2023/08/02].

3. 2021. Applying Bao to Distributed Systems. https://rmarcus.info/blog/2021/06/17/bao-distributed.html [Last Accessed: 2023/08/02]. 2021. Applying Bao to Distributed Systems. https://rmarcus.info/blog/2021/06/17/bao-distributed.html [Last Accessed: 2023/08/02].

4. 2021. Presto-on-Spark. https://prestodb.io/blog/2021/10/26/Scaling-with-Presto-on-Spark [Last Accessed: 2023/08/02]. 2021. Presto-on-Spark. https://prestodb.io/blog/2021/10/26/Scaling-with-Presto-on-Spark [Last Accessed: 2023/08/02].

5. 2022. Bao Online Appendix. https://rm.cab/bao_appendix [Last Accessed: 2023/08/02]. 2022. Bao Online Appendix. https://rm.cab/bao_appendix [Last Accessed: 2023/08/02].

Cited by 10 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. The Holon Approach for Simultaneously Tuning Multiple Components in a Self-Driving Database Management System with Machine Learning via Synthesized Proto-Actions;Proceedings of the VLDB Endowment;2024-07

2. Role-Based Access Control Technique with Trino for Restriction in Hive-Based Data Warehouse;2024 59th International Scientific Conference on Information, Communication and Energy Systems and Technologies (ICEST);2024-07-01

3. Low Rank Approximation for Learned Query Optimization;Proceedings of the Seventh International Workshop on Exploiting Artificial Intelligence Techniques for Data Management;2024-06-09

4. Machine Learning for Databases: Foundations, Paradigms, and Open problems;Companion of the 2024 International Conference on Management of Data;2024-06-09

5. Learned Query Optimizer: What is New and What is Next;Companion of the 2024 International Conference on Management of Data;2024-06-09

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3