UPDATING ADAPTIVE, DEFERRED, INCREMENTAL INDEXES
First Claim
Patent Images
1. A method for updating an index of a database in response to a query to said database comprising:
- receiving a request to query the database referencing the index of the database;
comparing the state of the index to the state of the database to determine if a modification has been made to the database that has not been applied to the index;
in the event said comparing determines that a modification has been made to the database that has not been applied to the index, updating the index by applying a corresponding modification to the index; and
executing the query with the index.
2 Assignments
0 Petitions
Accused Products
Abstract
An index update component updates an index of a database in response to a query to the database referencing the index. An index control record tracks the last time the index was referenced and state of the index compared to the state of the database. An index deletion component deletes indexes in the database that have not been referenced for a period of time.
91 Citations
20 Claims
-
1. A method for updating an index of a database in response to a query to said database comprising:
-
receiving a request to query the database referencing the index of the database; comparing the state of the index to the state of the database to determine if a modification has been made to the database that has not been applied to the index; in the event said comparing determines that a modification has been made to the database that has not been applied to the index, updating the index by applying a corresponding modification to the index; and executing the query with the index. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11)
-
-
12. A computer-readable medium having stored thereon a data structure for an index control record associated with an index of a database comprising:
-
an index identifier uniquely identifying the index of the database; and an index change number representing a change number of the last modification to the index of the database identified by the index identifier, wherein the index is updated with the modification as a function of the change number of the modification. - View Dependent Claims (13, 14, 15, 16, 17)
-
-
18. A computer-readable medium having computer-executable components comprising:
-
(a) a data structure for an index control record comprising; (i) an index identifier uniquely identifying an index of a database; (ii) an index change number representing a strictly increasing sequential change number of the last modification to the database for the subset of data identified by the data subset identifier that is reflected in the index identified by the index identifier, said modification being applied to the database and to the index in order of the sequential change number; and (iii) a last referenced time indicating the time that the index identified by the index identifier was last referenced by a query to the database; (b) an index update component for; (i) receiving the query the database referencing the index, said referenced index being associated with the index identifier; (ii) searching for the index control record for the index identifier associated with the requested index; and (iii) applying a modification to the index as a function of the index change number of the index control record; (c) an index deletion component for; (i) selecting zero or more index control records as a function of the last referenced time; (ii) for each selected index control record, deleting the index identified by the index identifier of the selected record. - View Dependent Claims (19, 20)
-
Specification