arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2303.15308cs.DB
收藏

学习型查询超优化

Learned Query Superoptimization

Ryan Marcus

AI总结:

本文提出学习型查询超优化思想,通过探索驱动算法、迭代贝叶斯优化和程序合成自主发现最优查询计划,以更长优化时间换取对大量重复查询的大幅加速。

摘要:

传统查询优化器被设计为快速且无状态的:每个查询使用近似统计信息快速优化,发送到执行引擎后随即被遗忘。近期关于学习型查询优化的研究表明,查询优化器有可能“从错误中学习”,在下次生成计划时纠正错误的查询计划。但如果查询优化器能够完全避免错误呢?本文提出了学习型查询超优化的思想。新一代查询超优化器可以自主进行实验,利用探索驱动算法、迭代贝叶斯优化和程序合成来发现最优计划。虽然此类超优化器优化给定查询所需的时间将显著更长,但超优化器有潜力大幅加速当今数据系统上执行的大量重要重复查询。

英文摘要:

Traditional query optimizers are designed to be fast and stateless: each query is quickly optimized using approximate statistics, sent off to the execution engine, and promptly forgotten. Recent work on learned query optimization have shown that it is possible for a query optimizer to "learn from its mistakes," correcting erroneous query plans the next time a plan is produced. But what if query optimizers could avoid mistakes entirely? This paper presents the idea of learned query superoptimization. A new generation of query superoptimizers could autonomously experiment to discover optimal plans using exploration-driven algorithms, iterative Bayesian optimization, and program synthesis. While such superoptimizers will take significantly longer to optimize a given query, superoptimizers have the potential to massively accelerate a large number of important repetitive queries being executed on data systems today.

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

↑