Foundations and Trends® in Databases > Vol 13 > Issue 4

Learned Query Optimizers

By Bolin Ding, Alibaba Group, China, bolin.ding@alibaba-inc.com | Rong Zhu, Alibaba Group, China, red.zr@alibaba-inc.com | Jingren Zhou, Alibaba Group, China, jingren.zhou@alibaba-inc.com

 
Suggested Citation
Bolin Ding, Rong Zhu and Jingren Zhou (2024), "Learned Query Optimizers", Foundations and TrendsĀ® in Databases: Vol. 13: No. 4, pp 250-310. http://dx.doi.org/10.1561/1900000082

Publication Date: 09 Sep 2024
© 2024 B. Ding, et al.
 
Subjects
Query processing and optimization,  Data mining and OLAP,  Database design and tuning,  Deep learning,  Graphical models,  Reinforcement learning
 

Free Preview:

Download extract

Share

Download article
In this article:
1. Introduction
2. Learned Cost Models
3. Exploring Plan Space
4. Open Research Challenges
References

Abstract

This survey presents recent progress on using machine learning techniques to improve query optimizers in database systems. Centering around a generic paradigm of learned query optimizers, this survey covers several lines of effort on rebuilding or aiding important components in query optimizers (i.e., cardinality estimators, cost models, and plan enumerators) with machine learning. We introduce some important machine learning tools developed recently, which are useful for query optimization, and how they are adapted for sub-tasks of query optimization. This survey is for readers who are already familiar with query optimization and are eager to understand what machine learning techniques can be helpful and how to apply them with examples and necessary details, or for machine learning researchers who want to expand their research agendas to helping database systems with machine learning techniques. Some open research challenges are also discussed with the goal of making learned query optimizers truly applicable in production.

DOI:10.1561/1900000082
ISBN: 978-1-63828-382-9
74 pp. $60.00
Buy book (pb)
 
ISBN: 978-1-63828-383-6
74 pp. $155.00
Buy E-book (.pdf)
Table of contents:
1. Introduction
2. Learned Cost Models
3. Exploring Plan Space
4. Open Research Challenges
References

Learned Query Optimizers

This monograph presents recent progress on using machine learning techniques to improve query optimizers in database systems. Centering around a generic paradigm of learned query optimizers, the publication covers several lines of efforts on rebuilding or aiding important components in query optimizers (i.e., cardinality estimators, cost models, and plan enumerators) with machine learning.

Some important machine learning tools that have recently been developed are introduced, which are useful for query optimization, and it is shown how they are adapted for sub-tasks of query optimization.

This monograph is for readers who are already familiar with query optimization and who are eager to understand what machine learning techniques can be helpful, and how to apply them with examples and necessary details. The text is also relevant for machine learning researchers who want to expand their research agendas to helping database systems with machine learning techniques. Some open research challenges are also discussed with the goal of making learned query optimizers truly applicable in production.

 
DBS-082