Query simplification: Graceful degradation for join-order optimization

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

34 Scopus citations

Abstract

Join ordering is one of the most important, but also most challenging problems of query optimization. In general find- ing the optimal join order is NP-hard. Existing dynamic pro- gramming algorithms exhibit exponential runtime even for the restricted, but highly relevant class of star joins. There- fore, it is infeasible to find the optimal join order when the query includes a large number of joins. Existing approaches for large queries switch to greedy heuristics or randomized algorithms at some point, which can degrade query execu- tion performance by orders of magnitude. We propose a new paradigm for optimizing large queries: when a query is too complex to be optimized exactly, we simplify the query's join graph until the optimization prob- lem becomes tractable within a given time budget. Dur- ing simplification, we apply safe simplifications before more risky ones. This way join ordering problems are solved op- timally if possible, and gracefully degrade with increasing query complexity. This paper presents a general framework for query simplification and a strategy for directing the simplification pro- cess. Extensive experiments with difierent kinds of queries, difierent join-graph structures, and diferent cost functions indicate that query simplification is very robust and outper- forms previous methods for join-order optimization.

Original languageEnglish
Title of host publicationSIGMOD-PODS'09 - Proceedings of the International Conference on Management of Data and 28th Symposium on Principles of Database Systems
Pages403-414
Number of pages12
DOIs
StatePublished - 2009
Externally publishedYes
EventInternational Conference on Management of Data and 28th Symposium on Principles of Database Systems, SIGMOD-PODS'09 - Providence, RI, United States
Duration: 29 Jun 20092 Jul 2009

Publication series

NameSIGMOD-PODS'09 - Proceedings of the International Conference on Management of Data and 28th Symposium on Principles of Database Systems

Conference

ConferenceInternational Conference on Management of Data and 28th Symposium on Principles of Database Systems, SIGMOD-PODS'09
Country/TerritoryUnited States
CityProvidence, RI
Period29/06/092/07/09

Fingerprint

Dive into the research topics of 'Query simplification: Graceful degradation for join-order optimization'. Together they form a unique fingerprint.

Cite this