Abstract | ||
---|---|---|
A "plan diagram" is a pictorial enumeration of the execution plan choices of a database query optimizer over the relational selectivity space. We have shown recently that, for industrial-strength database engines, these diagrams are often remarkably complex and dense, with a large number of plans covering the space. However, they can often be reduced to much simpler pictures, featuring significantly fewer plans, without materially affecting the query processing quality. Plan reduction has useful implications for the design and usage of query optimizers, including quantifying redundancy in the plan search space, enhancing useability of parametric query optimization, identifying error-resistant and least-expected-cost plans, and minimizing the overheads of multi-plan approaches. We investigate here the plan reduction issue from theoretical, statistical and empirical perspectives. Our analysis shows that optimal plan reduction, w.r.t. minimizing the number of plans, is an NP-hard problem in general, and remains so even for a storage-constrained variant. We then present a greedy reduction algorithm with tight and optimal performance guarantees, whose complexity scales linearly with the number of plans in the diagram for a given resolution. Next, we devise fast estimators for locating the best tradeoff between the reduction in plan cardinality and the impact on query processing quality. Finally, extensive experimentation with a suite of multi-dimensional TPCH-based query templates on industrial-strength optimizers demonstrates that complex plan diagrams easily reduce to "anorexic" (small absolute number of plans) levels incurring only marginal increases in the estimated query processing costs. |
Year | Venue | Keywords |
---|---|---|
2007 | VLDB | anorexic plan diagram,optimal plan reduction,query processing quality,plan reduction issue,plan cardinality,complex plan,plan reduction,plan diagram,least-expected-cost plan,fewer plan,execution plan choice,np hard problem,search space,query optimization |
Field | DocType | Citations |
Query optimization,Data mining,Query expansion,Computer science,Sargable,Cardinality,Web query classification,View,Theoretical computer science,Ranking (information retrieval),Online aggregation,Database | Conference | 12 |
PageRank | References | Authors |
0.75 | 17 | 3 |
Name | Order | Citations | PageRank |
---|---|---|---|
Harish Doraiswamy | 1 | 252 | 18.95 |
Pooja N. Darera | 2 | 35 | 1.51 |
Jayant R. Haritsa | 3 | 2004 | 228.38 |