arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1904.03711cs.DB
收藏

Neo:一个学习查询优化器

Neo: A Learned Query Optimizer

Ryan Marcus, Parimarjan Negi, Hongzi Mao, Chi Zhang, Mohammad Alizadeh, Tim Kraska, Olga Papaemmanouil, Nesime Tatbul

摘要:

查询优化是数据库系统中最具挑战性的问题之一。尽管在过去的几十年里取得了进步,但查询优化器仍然是非常复杂的组件,需要针对特定的工作负载和数据集进行大量的手动调优。受这一缺点的启发,并受到将机器学习应用于数据管理挑战的最新进展的启发,我们引入了Neo(神经优化器),这是一种新型的基于学习的查询优化器,它依赖于深度神经网络来生成查询执行计划。Neo从现有的优化器中引导其查询优化模型,并继续从传入的查询中学习,建立在成功的基础上,并从失败中学习。此外,Neo自然地适应底层数据模式,并且对估计错误具有鲁棒性。实验结果表明,即使从PostgreSQL这样的简单优化器引导,Neo也可以学习一个模型,该模型提供与最先进的商业优化器相似的性能,在某些情况下甚至超过它们。

英文摘要:

Query optimization is one of the most challenging problems in database systems. Despite the progress made over the past decades, query optimizers remain extremely complex components that require a great deal of hand-tuning for specific workloads and datasets. Motivated by this shortcoming and inspired by recent advances in applying machine learning to data management challenges, we introduce Neo (Neural Optimizer), a novel learning-based query optimizer that relies on deep neural networks to generate query executions plans. Neo bootstraps its query optimization model from existing optimizers and continues to learn from incoming queries, building upon its successes and learning from its failures. Furthermore, Neo naturally adapts to underlying data patterns and is robust to estimation errors. Experimental results demonstrate that Neo, even when bootstrapped from a simple optimizer like PostgreSQL, can learn a model that offers similar performance to state-of-the-art commercial optimizers, and in some cases even surpass them.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑