arrow
Return

Learned Query Optimizers: Evaluation and Improvement

delete2022-01-01
delete4
delete
OA
AI
A
Artem Mikhaylov
N
Nina Mazyavkina
M
Mikhail Salnikov
I
Ilya Trofimov *
Q
Qiang Fu
E
Evgeny Burnaev
DOI:10.1109/ACCESS.2022.3190376delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Query Optimization is considered to be one of the most important challenges in database management. Existing built-in query optimizers are very complex and rely on various approximations and hand-picked rules. The rise of deep learning and deep reinforcement learning has aided many scientific and industrial fields, providing an opportunity to develop a learnable query optimizer. In this paper, we analyse and improve the state-of-the-art learned query optimizer, Neo for the JOB benchmark on two database systems: PostgreSQL and Huawei GaussDB. We describe our methods, based on combination of Neo, Tree-Transformers, auxiliary tasks, reward weighting. Combinations of these methods improve latency of the found query execution plans. We also conduct a thorough analysis of the resulting execution plans and devise a set of decision-based rules to indicate the cases when the learned optimizer will outperform the built-in one. We also provide a source code for the proposed methods and experiments. Finally, we provide possible directions for further improvement in this field.
Keywords:
Query processing
Encoding
Costs
Cost function
Reinforcement learning
Distributed databases
Transformers
Database query optimization
join ordering
machine learning
reinforcement learning

Journal

IEEE Access cover
IEEE Access
IF:
3.6
Papers:
9.8W
Citations:
29.4W

Organization

H
huawei technologies
Scholars:
3.3K
Papers: 2.9K
Citations: 1
S
skolkovo institute of science & technology
Scholars:
3.3K
Papers: 2.3K
Citations: 1