MINIMIZING PROCESSING USING AN INDEX WHEN NON-LEADING COLUMNS MATCH AN AGGREGATION KEY
First Claim
1. A computer-implemented method, comprising operations for:
- receiving, with a processor of a computer, a query that includes a clause and an aggregation key;
determining, with the processor of the computer, that a non-leading key column of an index matches a column of the aggregation key comprising any of;
a leading column of an ORDER BY aggregation key, any column of a duplicate removal aggregation key, a MIN aggregation key, and a MAX aggregation key;
processing, with the processor of the computer, the clause using an order of the aggregation key to generate a first result set; and
processing, with the processor of the computer, the clause using the non-leading key column of the index that matched the column of the aggregation key and the first result set to generate a second result set; and
returning, with the processor of the computer, the second result set.
1 Assignment
0 Petitions
Accused Products
Abstract
Provided are techniques for minimizing processing using an index when non-leading columns match an aggregation key. A query that includes a clause and an aggregation key is received. It is determined that a non-leading key column of an index matches a column of the aggregation key comprising any of: a leading column of an ORDER BY aggregation key, any column of a duplicate removal aggregation key, a MIN aggregation key, and a MAX aggregation key. The clause is processed using an order of the aggregation key to generate a first result set. Then, the clause is processed using the non-leading key column of the index that matched the column of the aggregation key and the first result set to generate a second result set. The second result set is returned.
0 Citations
7 Claims
-
1. A computer-implemented method, comprising operations for:
-
receiving, with a processor of a computer, a query that includes a clause and an aggregation key; determining, with the processor of the computer, that a non-leading key column of an index matches a column of the aggregation key comprising any of;
a leading column of an ORDER BY aggregation key, any column of a duplicate removal aggregation key, a MIN aggregation key, and a MAX aggregation key;processing, with the processor of the computer, the clause using an order of the aggregation key to generate a first result set; and processing, with the processor of the computer, the clause using the non-leading key column of the index that matched the column of the aggregation key and the first result set to generate a second result set; and returning, with the processor of the computer, the second result set. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7-18. -18. (canceled)
Specification