多目标查询优化的快速随机算法
A Fast Randomized Algorithm for Multi-Objective Query Optimization
摘要:
在多目标查询优化中,根据多个成本度量对查询计划进行比较。我们的目标是找到一组帕累托计划,实现最佳的成本权衡为一个给定的查询。到目前为止,对于多目标查询优化,只提出了复杂度与查询表数成指数关系的算法。在这项工作中,我们提出了第一个算法的多项式复杂度的查询大小。我们的算法是随机的和迭代的。它通过爬山的多目标版本来改进查询计划,在每个爬山步骤中应用多个转换以实现最大效率。基于局部最优计划,我们在具有相似连接顺序的计划的有限空间内近似Pareto计划集。我们为每个潜在有用的中间结果维护一个Pareto最优计划的缓存,以共享在不同迭代中发现的部分计划。我们表明,我们的算法的每次迭代执行预期的多项式时间的基础上,通过爬山达到的随机计划和局部最优之间的预期路径长度的分析。我们的实验表明,我们的算法可以优化查询数百个表,并优于其他随机算法,如NSGA-II遗传算法在广泛的场景。
英文摘要:
Query plans are compared according to multiple cost metrics in multi-objective query optimization. The goal is to find the set of Pareto plans realizing optimal cost tradeoffs for a given query. So far, only algorithms with exponential complexity in the number of query tables have been proposed for multi-objective query optimization. In this work, we present the first algorithm with polynomial complexity in the query size. Our algorithm is randomized and iterative. It improves query plans via a multi-objective version of hill climbing that applies multiple transformations in each climbing step for maximal efficiency. Based on a locally optimal plan, we approximate the Pareto plan set within the restricted space of plans with similar join orders. We maintain a cache of Pareto-optimal plans for each potentially useful intermediate result to share partial plans that were discovered in different iterations. We show that each iteration of our algorithm performs in expected polynomial time based on an analysis of the expected path length between a random plan and local optima reached by hill climbing. We experimentally show that our algorithm can optimize queries with hundreds of tables and outperforms other randomized algorithms such as the NSGA-II genetic algorithm over a wide range of scenarios.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。