arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2401.15210cs.DBcs.AI
收藏

基于近似概率机器学习的鲁棒计划评估

Robust Plan Evaluation based on Approximate Probabilistic Machine Learning

University of Ottawa(渥太华大学);IBM Canada Lab(IBM加拿大实验室)

Amin Kamali, Verena Kantere, Calisto Zuzarte, Vincent Corvinelli

AI总结:

针对传统查询优化器因估计不准而选次优计划的问题,提出基于风险感知学习和近似概率机器学习的Roq框架,以量化鲁棒性并优化计划选择,显著提升鲁棒查询优化性能。

摘要:

关系数据库管理系统(RDBMS)中的查询优化器会搜索对于给定查询预期最优的执行计划。它们使用通常不准确的参数估计,并做出在实践中可能不成立的假设。因此,如果估计和假设不成立,它们可能会在运行时选择次优的计划。所以,它们不能充分支持鲁棒的查询优化。使用机器学习来改进数据系统在查询优化方面已显示出有前景的结果。受此启发,我们提出了鲁棒查询优化器(Roq),一个基于风险感知学习方法的整体框架。Roq包含了对查询优化背景下鲁棒性概念的新形式化,以及基于近似概率机器学习对其进行量化和测量的原则性方法。它还包含了用于查询计划评估和选择的新策略和算法。Roq包含一个新颖的学习成本模型,该模型旨在预测查询执行的成本及相关风险,并据此进行查询优化。我们证明,与最先进的方法相比,Roq在鲁棒查询优化方面提供了显著的改进。

英文摘要:

Query optimizers in RDBMSs search for execution plans expected to be optimal for given queries. They use parameter estimates, often inaccurate, and make assumptions that may not hold in practice. Consequently, they may select plans that are suboptimal at runtime if estimates and assumptions are not valid. Therefore, they do not sufficiently support robust query optimization. Using ML to improve data systems has shown promising results for query optimization. Inspired by this, we propose Robust Query Optimizer (Roq), a holistic framework based on a risk-aware learning approach. Roq includes a novel formalization of the notion of robustness in the context of query optimization and a principled approach for its quantification and measurement based on approximate probabilistic ML. It also includes novel strategies and algorithms for query plan evaluation and selection. Roq includes a novel learned cost model that is designed to predict the cost of query execution and the associated risks and performs query optimization accordingly. We demonstrate that Roq provides significant improvements in robust query optimization compared with the state-of-the-art.

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

↑