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

通过贝叶斯优化进行离线查询规划的学习方法

Learned Offline Query Planning via Bayesian Optimization

Jeffrey Tao, Natalie Maus, Haydn Jones, Yimeng Zeng, Jacob R. Gardner, Ryan Marcus

AI总结:

本文提出一种结合变分自编码器与贝叶斯优化的离线查询优化器,通过将查询执行作为原语搜索更优计划,在多个数据集上相比PostgreSQL最优计划和近期强化学习方法找到更快的查询计划。

摘要:

分析型数据库工作负载中通常包含会被重复执行的查询。现有的优化技术通常优先保持较低的优化成本,通常远低于执行单个查询实例所需的时间。如果某个查询将被执行数千次,是否值得投入显著更多的优化时间?与传统的在线查询优化器不同,我们提出了一种离线查询优化器,它搜索各种各样的计划,并将查询执行作为一个基本原语纳入其中。我们的离线查询优化器结合了变分自编码器与贝叶斯优化,为给定查询寻找优化后的计划。我们在多个数据集上将我们的技术与PostgreSQL可能达到的最优计划以及近期基于强化学习的系统进行了比较,并表明我们的技术能够找到更快的查询计划。

英文摘要:

Analytics database workloads often contain queries that are executed repeatedly. Existing optimization techniques generally prioritize keeping optimization cost low, normally well below the time it takes to execute a single instance of a query. If a given query is going to be executed thousands of times, could it be worth investing significantly more optimization time? In contrast to traditional online query optimizers, we propose an offline query optimizer that searches a wide variety of plans and incorporates query execution as a primitive. Our offline query optimizer combines variational auto-encoders with Bayesian optimization to find optimized plans for a given query. We compare our technique to the optimal plans possible with PostgreSQL and recent RL-based systems over several datasets, and show that our technique finds faster query plans.

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

↑