AlphaQO: 鲁棒的学习型查询优化器

Translated title of the contribution: AlphaQO: Robust Learned Query Optimizer

Xiang Yu, Cheng Liang Chai, Xin Ning Zhang, Nan Tang, Ji Sun, Guo Liang Li*

*Corresponding author for this work

Research output: Contribution to journalArticlepeer-review

2 Citations (Scopus)

Abstract

Learned database query optimizers, which are typically empowered by (deep) learning models, have attracted significant attention recently, because they can offer similar or even better performance than the state-of-the-art commercial optimizers that require hundreds of expert-hours to tune. A crucial factor of successfully training learned optimizers is training queries. Unfortunately, a good query workload that is sufficient for training learned optimizers is not always available. This study proposes a framework, called AlphaQO, on generating queries for learned optimizers with reinforcement learning (RL). AlphaQO is a loop system that consists of two main components, query generator and learned optimizer. Query generator aims at generating “hard” queries (i.e., those queries that the learned optimizer provides poor estimates). The learned optimizer will be trained using generated queries, as well as providing feedbacks (in terms of numerical rewards) to the query generator. If the generated queries are good, the query generator will get a high reward; otherwise, the query generator will get a low reward. The above process is performed iteratively, with the main goal that within a small budget, the learned optimizer can be trained and generalized well to a wide range of unseen queries. Extensive experiments show that AlphaQO can generate a relatively small number of queries and train a learned optimizer to outperform commercial optimizers. Moreover, learned optimizers need much less queries from AlphaQO than randomly generated queries, in order to well train the learned optimizer.

Translated title of the contributionAlphaQO: Robust Learned Query Optimizer
Original languageChinese (Traditional)
Pages (from-to)814-831
Number of pages18
JournalRuan Jian Xue Bao/Journal of Software
Volume33
Issue number3
DOIs
Publication statusPublished - Mar 2022
Externally publishedYes

Fingerprint

Dive into the research topics of 'AlphaQO: Robust Learned Query Optimizer'. Together they form a unique fingerprint.

Cite this