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

高效且可证明的多查询优化

Efficient and Provable Multi-Query Optimization

Tarun Kathuria, S. Sudarshan

摘要:

大规模数据分析作业的复杂查询已经变得越来越普遍。许多这样的查询包含常见的子表达式,或者在单个查询中,或者在作为批处理提交的多个查询中。传统的查询优化器不利用这些子表达式,并产生次优的计划。多查询优化(MQO)问题是通过一次计算公共子表达式并重用它们来生成最优的组合求值计划。MQO的穷举算法探索O(n^n)搜索空间。因此,这个问题主要是使用各种启发式算法来解决的,而没有提供任何理论保证其解决方案的质量。在本文中,而不是传统的成本最小化问题,我们把这个问题作为最大化的成本函数的线性变换。我们提出了一个贪心算法的问题,这在弱,直观的假设下,这个配方提供了一个近似因子的保证。我们继续证明这个因子是最优的,除非P = NP。关于我们的算法的另一个值得注意的点是,它可以很容易地纳入现有的基于转换的优化。最后,我们提出了优化,可用于提高我们的算法的效率。

英文摘要:

Complex queries for massive data analysis jobs have become increasingly commonplace. Many such queries contain com- mon subexpressions, either within a single query or among multiple queries submitted as a batch. Conventional query optimizers do not exploit these subexpressions and produce sub-optimal plans. The problem of multi-query optimization (MQO) is to generate an optimal combined evaluation plan by computing common subexpressions once and reusing them. Exhaustive algorithms for MQO explore an O(n^n) search space. Thus, this problem has primarily been tackled using various heuristic algorithms, without providing any theoretical guarantees on the quality of their solution. In this paper, instead of the conventional cost minimization problem, we treat the problem as maximizing a linear transformation of the cost function. We propose a greedy algorithm for this transformed formulation of the problem, which under weak, intuitive assumptions, provides an approximation factor guarantee for this formulation. We go on to show that this factor is optimal, unless P = NP. Another noteworthy point about our algorithm is that it can be easily incorporated into existing transformation-based optimizers. We finally propose optimizations which can be used to improve the efficiency of our algorithm.

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

↑