Index selection for an index access path
First Claim
Patent Images
1. A method for generating an index access path for use in processing a query that includes a WHERE clause having a predicate that references a column of a table from a plurality of indexes built on the table, said method comprising the computer-implemented steps of:
- generating a plurality of index access methods for the table from said plurality of indexes built on the table based on the WHERE clause;
computing costs for the index access methods; and
selecting said index access path based on the costs for the index access methods;
wherein each of the index access methods includes one or more index access keys, and each of the one or more index access keys includes a key value, based on a predicate of the WHERE clause, for comparison with values from a column of the table upon which one of the indexes was built.
2 Assignments
0 Petitions
Accused Products
Abstract
A list of indexes, from which indexes are selected for an index access path, is sorted by number of columns upon which each index is built. From the sorted list of indexes, a set of index access methods is generated in a heuristically ordered set of passes from a given WHERE clause. The index access methods that comprise the index access path are selected from the set of index access methods according to a cost/benefit analysis.
103 Citations
26 Claims
-
1. A method for generating an index access path for use in processing a query that includes a WHERE clause having a predicate that references a column of a table from a plurality of indexes built on the table, said method comprising the computer-implemented steps of:
-
generating a plurality of index access methods for the table from said plurality of indexes built on the table based on the WHERE clause; computing costs for the index access methods; and selecting said index access path based on the costs for the index access methods; wherein each of the index access methods includes one or more index access keys, and each of the one or more index access keys includes a key value, based on a predicate of the WHERE clause, for comparison with values from a column of the table upon which one of the indexes was built. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13)
-
-
14. A computer readable medium having stored thereon sequences of instructions for generating an index access path for use in processing a query that includes a WHERE clause having a predicate that references a column of a table from a plurality of indexes built on the table based on a WHERE clause, said sequences of instructions including instructions for performing the steps of:
-
generating a plurality of index access methods for the table from said plurality of indexes built on the table based on the WHERE clause; computing costs for the index access methods; and selecting said index access path based on the costs for the index access methods; wherein each of the index access methods includes one or more index access keys, and each of the one or more index access keys includes a key value, based on a predicate of the WHERE clause, for comparison with key values from one of the indexes. - View Dependent Claims (15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26)
-
Specification