Abstract

Query optimizer is at the heart of the database systems. Cost-based optimizer studied in this paper is adopted in almost all current database systems. A cost-based optimizer introduces a plan enumeration algorithm to find a (sub)plan, and then uses a cost model to obtain the cost of that plan, and selects the plan with the lowest cost. In the cost model, cardinality, the number of tuples through an operator, plays a crucial role. Due to the inaccuracy in cardinality estimation, errors in cost model, and the huge plan space, the optimizer cannot find the optimal execution plan for a complex query in a reasonable time. In this paper, we first deeply study the causes behind the limitations above. Next, we review the techniques used to improve the quality of the three key components in the cost-based optimizer, cardinality estimation, cost model, and plan enumeration. We also provide our insights on the future directions for each of the above aspects.

Details

Title
A Survey on Advancing the DBMS Query Optimizer: Cardinality Estimation, Cost Model, and Plan Enumeration
Author
Lan Hai 1 ; Bao Zhifeng 1 ; Peng Yuwei 2 

 RMIT University, Melbourne, Australia (GRID:grid.1017.7) (ISNI:0000 0001 2163 3550) 
 Wuhan University, Wuhan, China (GRID:grid.49470.3e) (ISNI:0000 0001 2331 6153) 
Pages
86-101
Publication year
2021
Publication date
Mar 2021
Publisher
Springer Nature B.V.
e-ISSN
2364-1541
Source type
Scholarly Journal
Language of publication
English
ProQuest document ID
2491437374
Copyright
© The Author(s) 2021. This work is published under http://creativecommons.org/licenses/by/4.0/ (the “License”). Notwithstanding the ProQuest Terms and Conditions, you may use this content in accordance with the terms of the License.