Supporting top-k join queries in relational databases
Author(s) -
Ihab F. Ilyas,
WalidG. Aref,
AhmedK. Elmagarmid
Publication year - 2004
Publication title -
the vldb journal
Language(s) - English
Resource type - Journals
SCImago Journal Rank - 0.653
H-Index - 90
eISSN - 0949-877X
pISSN - 1066-8888
DOI - 10.1007/s00778-004-0128-2
Subject(s) - joins , computer science , join (topology) , sort merge join , query optimization , ranking (information retrieval) , hash join , database , relational database , heuristic , query language , sargable , information retrieval , rank (graph theory) , heuristics , relational algebra , query expansion , theoretical computer science , web search query , search engine , programming language , mathematics , artificial intelligence , combinatorics , operating system
Ranking queries, also known as top-k queries, produce results that are ordered on some computed score. Typically, these queries involve joins, where users are usually interested only in the top-k join results. Top-k queries are dominant in many emerging applications, e.g., multimedia retrieval by content, Web databases, data mining, middlewares, and most information retrieval applications. Current relational query processors do not handle ranking queries efficiently, especially when joins are involved. In this paper, we address supporting top-k join queries in relational query processors. We introduce a new rank-join algorithm that makes use of the individual orders of its inputs to produce join results ordered on a user-specified scoring function. The idea is to rank the join results progressively during the join operation. We introduce two physical query operators based on variants of ripple join that implement the rank-join algorithm. The operators are nonblocking and can be integrated into pipelined execution plans. We also propose an efficient heuristic designed to optimize a top-k join query by choosing the best join order. We address several practical issues and optimization heuristics to integrate the new join operators in practical query processors. We implement the new operators inside a prototype database engine based on PREDATOR. The experimental evaluation of our approach compares recent algorithms for joining ranked inputs and shows superior performance.
Accelerating Research
Robert Robinson Avenue,
Oxford Science Park, Oxford
OX4 4GP, United Kingdom
Address
John Eccles HouseRobert Robinson Avenue,
Oxford Science Park, Oxford
OX4 4GP, United Kingdom