Answering top-K selection queries in a relational engine
First Claim
1. A system that facilitates query processing, comprising:
- a receiving component that receives a top-k query for a relational data; and
a query optimization component that determines an optimal execution plan for providing a top-k set of ordered tuples for the query via consideration, at least in part, of a threshold-based process that employs metadata associated with the relational data.
2 Assignments
0 Petitions
Accused Products
Abstract
The subject invention leverages threshold-based strategies applied to relational data to facilitate in determining an optimal execution plan for top-k selection queries. These strategies utilize a given query and relational data metadata to identify possible execution plans. This allows alternatives to scanning techniques to be considered in order to further enhance the overall efficiency of the optimal execution plan. A query optimizer can prune, for example, the alternative execution plans during enumeration of the plan space and/or during cost evaluations of the possible alternative execution plans. A cost model for the query optimizer can utilize a cost function based on an approximation of the number of iterations required to complete a threshold-based strategy.
-
Citations
20 Claims
-
1. A system that facilitates query processing, comprising:
-
a receiving component that receives a top-k query for a relational data; and
a query optimization component that determines an optimal execution plan for providing a top-k set of ordered tuples for the query via consideration, at least in part, of a threshold-based process that employs metadata associated with the relational data. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. A method of facilitating a top-k selection for relational data queries, comprising:
-
receiving a top-k query for relational data;
employing a threshold-based process to identify possible execution plans for a search space of the relational data;
the identification based, at least in part, on the query and metadata associated with the relational data;
pruning the possible execution plans to facilitate in determining an optimal alternative execution plan;
estimating a cost for each execution plan; and
selecting a minimal cost execution plan as the optimal alternative execution plan. - View Dependent Claims (11, 12, 13, 14, 15, 16, 17, 18)
-
-
19. A system that facilitates query processing, comprising:
-
means for receiving a top-k query for a relational database; and
means for determining an optimal execution plan for providing a top-k set of ordered tuples for the query via consideration of a threshold-based process that employs metadata associated with the relational database. - View Dependent Claims (20)
-
Specification