Secondary index search
First Claim
Patent Images
1. In a computer system, a method for selecting a data record from a database using a selection criteria that specifies values for a primary key and a secondary key of the data record where the database stores the values of the primary key and the secondary key for the data record in a secondary index record for the data record, the method comprising the steps of:
- searching the database for a secondary index record that satisfies the secondary key value of the selection criteria;
comparing the primary key value of the selection criteria against the primary key value stored in the secondary index record that satisfies the secondary key value of the selection criteria; and
selecting a data record identified by the primary key value in the secondary index record if the primary key value satisfies the primary key value of the selection criteria.
11 Assignments
0 Petitions
Accused Products
Abstract
A secondary index search in a relational database system compares primary key selection criteria against a primary key value stored in a secondary index record that satisfies secondary key selection criteria instead of searching a primary index for a primary key value that satisfies the primary key selection criteria.
-
Citations
15 Claims
-
1. In a computer system, a method for selecting a data record from a database using a selection criteria that specifies values for a primary key and a secondary key of the data record where the database stores the values of the primary key and the secondary key for the data record in a secondary index record for the data record, the method comprising the steps of:
-
searching the database for a secondary index record that satisfies the secondary key value of the selection criteria;
comparing the primary key value of the selection criteria against the primary key value stored in the secondary index record that satisfies the secondary key value of the selection criteria; and
selecting a data record identified by the primary key value in the secondary index record if the primary key value satisfies the primary key value of the selection criteria. - View Dependent Claims (2, 3, 4)
-
-
5. A computer-readable medium having computer-executable instructions for performing the steps of:
-
searching a database table indexed on a primary and a secondary key using a secondary key value in a selection criteria to locate a secondary index record that satisfies the secondary key value of the selection criteria;
comparing a primary key value of the selection criteria against a primary key value stored in the secondary index record that satisfies the secondary key value of the selection criteria; and
selecting a data record identified by the primary key value in the secondary index record if the primary key value satisfies the primary key value of the selection criteria. - View Dependent Claims (6, 7, 8)
-
-
9. In a computer system, a method for selecting data records from a database using a selection criteria that specifies values for a primary key and a secondary key of the data record where the database stores the values of the primary key and the secondary key for the data record in a secondary index record for the data record, the method comprising the steps of:
-
creating a set of secondary index records that satisfy the primary and secondary key values in the selection criteria; and
selecting a data record identified by the primary key value for each secondary index record in the set. - View Dependent Claims (10, 11)
-
-
12. A secondary index search for selecting a data record from a database using a selection criteria that specifies values for a primary key and a secondary key of the data record where the database stores the values of the primary key and the secondary key for the data record in a secondary index record for the data record, the secondary index search comprising:
-
search means for searching the database for a secondary index record that satisfies the secondary key value of the selection criteria;
comparison means for comparing primary key values, wherein the primary key value of the selection criteria is compared against the primary key value stored in the secondary index record found by the searching means; and
retrieval means for retrieving a data record, wherein the primary key value in the secondary index record identifies the data record to be retrieved when the comparision means indicates that the selection criteria is satisfied. - View Dependent Claims (13, 14, 15)
-
Specification