Foundations and Trends® in Databases > Vol 14 > Issue 3-4

Extensible Query Optimizers in Practice

By Bailu Ding, Microsoft Corporation, USA, badin@microsoft.com | Vivek Narasayya, Microsoft Corporation, USA, viveknar@microsoft.com | Surajit Chaudhuri, Microsoft Corporation, USA, surajitc@microsoft.com

 
Suggested Citation
Bailu Ding, Vivek Narasayya and Surajit Chaudhuri (2024), "Extensible Query Optimizers in Practice", Foundations and TrendsĀ® in Databases: Vol. 14: No. 3-4, pp 186-402. http://dx.doi.org/10.1561/1900000077

Publication Date: 16 Dec 2024
© 2024 B. Ding et al.
 
Subjects
Query processing and optimization,  Data models and query languages,  Data warehousing,  Adaptive query processing,  Performance,  Scalability
 

Free Preview:

Download extract

Share

Download article
In this article:
1. Introduction
2. Extensible Optimizers
3. Other Extensible Optimizers in the Industry
4. Key Transformations
5. Cost Estimation
6. Plan Management
7. Open Problems
Acknowledgements
Appendix
References

Abstract

The performance of a query crucially depends on the ability of the query optimizer to choose a good execution plan from a large space of alternatives. With the discovery of algebraic transformation rules and the emergence of new application-specific contexts, extensibility has become a key requirement for query optimizers. This monograph describes extensible query optimizers in detail, focusing on the Volcano/Cascades framework used by several database systems including Microsoft SQL Server. We explain the need for extensible query optimizer architectures and how the optimizer navigates the search space efficiently. We then discuss several important transformations that are commonly used in practice. We describe cost estimation, an essential component that the optimizer relies upon to quantitatively compare alternative plans in the search space. We discuss how database systems manage plans over their lifetime as data and workloads change. We conclude with a few open challenges.

DOI:10.1561/1900000077
ISBN: 978-1-63828-452-9
234 pp. $99.00
Buy book (pb)
 
ISBN: 978-1-63828-453-6
234 pp. $310.00
Buy E-book (.pdf)
Table of contents:
1. Introduction
2. Extensible Optimizers
3. Other Extensible Optimizers in the Industry
4. Key Transformations
5. Cost Estimation
6. Plan Management
7. Open Problems
Acknowledgements
Appendix
References

Extensible Query Optimizers in Practice

The performance of a query crucially depends on the ability of the query optimizer to choose a good execution plan from a large space of alternatives. With the discovery of algebraic transformation rules and the emergence of new application-specific contexts, extensibility has become a key requirement for query optimizers. This monograph describes extensible query optimizers in detail, focusing on the Volcano/Cascades framework used by several database systems including Microsoft SQL Server.

The authors explain the need for extensible query optimizer architectures and how the optimizer navigates the search space efficiently. Several important transformations that are commonly used in practice are then discussed. The cost estimation is described as an essential component that the optimizer relies upon to quantitatively compare alternative plans in the search space. The authors also discuss how database systems manage plans over their lifetime as data and workloads change. The monograph concludes with a few open challenges.

 
DBS-077