Greedy Awakens : Efficient and Provable Multi-Query Optimization

Kathuria, Tarun ; Sudarshan, S (2015) Greedy Awakens : Efficient and Provable Multi-Query Optimization Databases .

Full text not available from this repository.

Abstract

Complex queries for massive data analysis jobs have become increasingly commonplace. Many such queries contain common sub-expressions, either within a single query or among multiple queries submitted as a batch. Conventional query optimizers do not exploit these common sub-expressions and produce sub-optimal plans. The problem of multi-query optimization (MQO) is to generate an optimal \textit{combined} evaluation plan by computing common sub-expressions once and reusing them. Exhaustive algorithms for MQO explore an $\mathcal{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 the solution obtained. 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, gives an approximation factor with respect to the optimal solution of this formulation. We go on to show that this factor is optimal, unless $\mathsf{P} = \mathsf{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.

Item Type:Article
Source:Copyright of this article belongs to arXiv
ID Code:128465
Deposited On:21 Oct 2022 09:28
Last Modified:15 Nov 2022 03:14

Repository Staff Only: item control page