Prefetching and caching persistent objects
First Claim
Patent Images
1. A method for prefetching data comprising:
- prior to receiving a query for an attribute corresponding to an initial object in an object structure comprising a plurality of objects, creating a structure context description that identifies each object in the object structure wherein the structure context description is created from a state of an object related to the initial object, the state of the related object comprising a reference to the object structure;
associating the structure context description with each object in the object structure;
storing the structure context description in a physical storage system; and
upon receiving the query;
retrieving data corresponding to the attribute of the initial object;
returning the data corresponding to the attribute of the initial object to an application;
using the structure context description to identify at least one other object in the object structure that has the attribute;
retrieving data corresponding to the attribute of the other objects in the object structure;
placing in cache the data corresponding to the attribute of the other objects in the object structure; and
upon receiving a request the attribute for one of the other objects, providing the requested attribute from the data stored in the cache, whereby the attribute is provided in less time than if the attribute were not cached.
1 Assignment
0 Petitions
Accused Products
Abstract
Prefetching and caching persistent objects is disclosed. The system creates a structure context used to identify a set containing a first object and other related objects. The objects have attributes, where each attribute is identified by a name. Upon a fetch of an attribute in the first object, the system also fetches related data. The related data includes other attributes in the object, and attributes in the other objects of the set having the same name as the attribute fetched for the first object.
23 Citations
24 Claims
-
1. A method for prefetching data comprising:
-
prior to receiving a query for an attribute corresponding to an initial object in an object structure comprising a plurality of objects, creating a structure context description that identifies each object in the object structure wherein the structure context description is created from a state of an object related to the initial object, the state of the related object comprising a reference to the object structure; associating the structure context description with each object in the object structure; storing the structure context description in a physical storage system; and upon receiving the query; retrieving data corresponding to the attribute of the initial object; returning the data corresponding to the attribute of the initial object to an application; using the structure context description to identify at least one other object in the object structure that has the attribute; retrieving data corresponding to the attribute of the other objects in the object structure; placing in cache the data corresponding to the attribute of the other objects in the object structure; and upon receiving a request the attribute for one of the other objects, providing the requested attribute from the data stored in the cache, whereby the attribute is provided in less time than if the attribute were not cached. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A computer-readable storage medium having stored thereon computer-executable instructions for performing a process comprising:
-
prior to receiving a query for an attribute corresponding to an initial object in an object structure comprising a plurality of objects, creating a structure context description that identifies each object in the object structure wherein the structure context description is created from a state of an object related to the initial object, the state of the related object comprising a reference to the object structure; associating the structure context description with each object in the object structure; storing the structure context description in a physical storage system; and upon receiving the query; retrieving data corresponding to the attribute of the initial object; returning the data corresponding to the attribute of the initial object to an application; using the structure context description to identify at least one other object in the object structure that has the attribute; retrieving data corresponding to the attribute of the other objects in the object structure; placing in cache the data corresponding to the attribute of the other objects in the object structure; and upon receiving a request the attribute for one of the other objects, providing the requested attribute from the data stored in the cache, whereby the attribute is provided in less time than if the attribute were not cached. - View Dependent Claims (10, 11, 12, 13, 14, 15, 16)
-
-
17. A system for prefetching data comprising:
-
a processor operative to execute computer executable instructions; and memory having stored therein computer executable instructions for performing a process comprising; prior to receiving a query for an attribute corresponding to an initial object in an object structure comprising a plurality of objects, creating a structure context description that identifies each object in the object structure wherein the structure context description is created from a state of an object related to the initial object, the state of the related object comprising a reference to the object structure; associating the structure context description with each object in the object structure; storing the structure context description in a physical storage system; and upon receiving the query; retrieving data corresponding to the attribute of the initial object; returning the data corresponding to the attribute of the initial object to an application; using the structure context description to identify at least one other object in the object structure that has the attribute; retrieving data corresponding to the attribute of the other objects in the object structure; placing in cache the data corresponding to the attribute of the other objects in the object structure; and upon receiving a request the attribute for one of the other objects, providing the requested attribute from the data stored in the cache, whereby the attribute is provided in less time than if the attribute were not cached. - View Dependent Claims (18, 19, 20, 21, 22, 23, 24)
-
Specification