Database access
First Claim
1. A method for checking the consistency of an item of data in a cache database with a respective item of data in a master database by comparing a first key stored in association with the item of data in the cache database with a second key stored in association with an index entry for the respective item of data in the master database.
1 Assignment
0 Petitions
Accused Products
Abstract
In a client/server computer environment having a fileserver running a mater database and clients supporting cache databases, inconsistent data write accesses are prevented by using a data locking technique, which locks data during the course of an up-date transaction requested by one client. This prevents access to the same data by another client. Data consistency is checked prior to the write access, by comparing a time stamp associated with a respective cache database entry and a time stamp associated with the index to the corresponding data entry in the master database. Time stamp equivalence obviates the need to access the master database or to transfer data across the client/server communications network.
106 Citations
9 Claims
- 1. A method for checking the consistency of an item of data in a cache database with a respective item of data in a master database by comparing a first key stored in association with the item of data in the cache database with a second key stored in association with an index entry for the respective item of data in the master database.
-
2. A method for retrieving an item of data from one of a cache or a master database, the master database comprising a plurality of items of master data and an index containing entries corresponding to one or more of the items of master data, the cache database containing a cached copy of at least one item of the master data, the method comprising the steps of:
-
reading a first key stored in association with a cached copy of a required item of data from the cache database;
reading a second key stored in association with an index entry for a respective item of master data from the master database;
comparing the first key with the second key; and
retrieving in the event the first and second keys are the same the cached copy of the item of data or in the event the first and second keys are different the respective item of master data. - View Dependent Claims (7, 8)
-
-
5. A database fileserver apparatus comprising:
-
input means for receiving a conditional read request for an item of data stored in the database, the request including a first key for a previously-retrieved copy of the item of data;
means for accessing an index of the database and reading an index entry for the requested item of data, the index entry including a second key for the stored item of information;
means for comparing the first and second keys; and
means if the keys are the same for returning an indication that the previously-retrieved copy of the item of data is consistent or if the keys are different for reading from the database and returning a copy of the item of data.
-
-
6. A database index, wherein at least one index entry in the index includes at least:
-
identity information for identifying an item of information in the database;
location information for indicating the location in the database of the item of information; and
version information which changes each time the respective information in the database changes.
-
-
9. A method for checking the consistency of an item of data in a cache database with a respective item of data in a master database by comparing a first key stored in association with the item of data in the cache database with a second key stored as a component of an entry for the respective item of data in the master database.
Specification