Back to Search Start Over

Adaptive rank-aware query optimization in relational databases

Authors :
Ilyas, Ihab F.
Aref, Walid G.
Elmagarmid, Ahmed K.
Elmongui, Hicham G.
Shah, Rahul
Vitter, Jeffrey Scott
Source :
ACM Transactions on Database Systems. Dec, 2006, Vol. 31 Issue 4, p1257, 48 p.
Publication Year :
2006

Abstract

Rank-aware query processing has emerged as a key requirement in modern applications. In these applications, efficient and adaptive evaluation of top-k queries is an integral part of the application semantics. In this article, we introduce a rank-aware query optimization framework that fully integrates rank-join operators into relational query engines. The framework is based on extending the System R dynamic programming algorithm in both enumeration and pruning. We define ranking as an interesting physical property that triggers the generation of rank-aware query plans. Unlike traditional join operators, optimizing for rank-join operators depends on estimating the input cardinality of these operators. We introduce a probabilistic model for estimating the input cardinality, and hence the cost of a rank-join operator. To our knowledge, this is the first effort in estimating the needed input size for optimal rank aggregation algorithms. Costing ranking plans is key to the full integration of rank-join operators in real-world query processing engines. Since optimal execution strategies picked by static query optimizers lose their optimality due to estimation errors and unexpected changes in the computing environment, we introduce several adaptive execution strategies for top-k queries that respond to these unexpected changes and costing errors. Our reactive reoptimization techniques change the execution plan at runtime to significantly enhance the performance of running queries. Since top-k query plans are usually pipelined and maintain a complex ranking state, altering the execution strategy of a running ranking query is an important and challenging task. We conduct an extensive experimental study to evaluate the performance of the proposed framework. The experimental results are twofold: (1) we show the effectiveness of our cost-based approach of integrating ranking plans in dynamic programming cost-based optimizers; and (2) we show a significant speedup (up to 300%) when using our adaptive execution of ranking plans over the state-of-the-art mid-query reoptimization strategies. Categories and Subject Descriptors: H.2.4 [Database Management]: Systems General Terms: Algorithms, Design, Experimentation, Performance Additional Key Words and Phrases: Advanced query processing, ranking, top-k, adaptive processing, rank-aware optimization

Details

Language :
English
ISSN :
03625915
Volume :
31
Issue :
4
Database :
Gale General OneFile
Journal :
ACM Transactions on Database Systems
Publication Type :
Academic Journal
Accession number :
edsgcl.158683394