Looking ahead makes query plans robust
Authors:
Open Access
- 1 April 2017
- journal article
- Published by Association for Computing Machinery (ACM) in Proceedings of the VLDB Endowment
- Vol. 10 (8) , 889-900
Abstract
Query optimizers and query execution engines cooperate to deliver high performance on complex analytic queries. Typically, the optimizer searches through the plan space and sends a selected plan to the execution engine. However, optimizers may at times miss the optimal plan, with sometimes disastrous impact on performance. In this paper, we develop the notion of robustness of a query evaluation strategy with respect to a space of query plans. We also propose a novel query execution strategy called Lookahead Information Passing (LIP) that is robust with respect to the space of (fully pipeline-able) left-deep query plan trees for in-memory star schema data warehouses. LIP ensures that execution times for the best and the worst case plans are far closer than without LIP. In fact, under certain assumptions of independent and uniform distributions, any plan in that space is theoretically guaranteed to execute in near-optimal time. LIP ensures that the execution time for every plan in the space is nearly-optimal. In this paper, we also evaluate these claims using workloads that include skew and correlation. With LIP we make an initial foray into a novel way of thinking about robustness from the perspective of query evaluation, where we develop strategies (like LIP) that collapse plan sub-spaces in the overall global plan space.Keywords
This publication has 22 references indexed in Scilit:
- Variations of the star schema benchmark to test the effects of data skew on query performance2013
- The Star Schema Benchmark and Augmented Fact Table Indexing2009
- Adaptive ordering of pipelined stream filters2004
- On applying hash filters to improving the execution of multi-join queriesThe VLDB Journal, 1997
- Query evaluation techniques for large databasesACM Computing Surveys, 1993
- Predicate migrationACM SIGMOD Record, 1993
- Join and Semijoin Algorithms for a Multiprocessor Database MachineACM Transactions on Database Systems, 1984
- Using Semi-Joins to Solve Relational QueriesJournal of the ACM, 1981
- Implementing a relational database by means of specialzed hardwareACM Transactions on Database Systems, 1979
- Space/time trade-offs in hash coding with allowable errorsCommunications of the ACM, 1970