Method and apparatus for a context based cache infrastructure to enable subset query over a cached object
First Claim
1. A method in a data processing system for a context based infrastructure to enable subset query over a cached object, the method comprising:
- detecting a query to a root context of a context tree from a user, wherein the query includes a name and value pair;
responsive to detecting the query, traversing the context tree for a parent context of a subcontext corresponding to the name and value pair; and
determining if the parent context caches all query results.
1 Assignment
0 Petitions
Accused Products
Abstract
A method, an apparatus, and computer instructions are provided for a context based cache infrastructure to enable subset query over a cached object. Responsive to detecting a query to a root context of a context tree, the tree is traversed for a parent context of a subcontext corresponding to the name and value pair, which is identified by a user in the query. If the parent context caches all query results, the query results are iterated and the remaining name and value pairs are filtered out. However, if the parent context does not cache all query results, the traversing step is repeated for next parent context of the subcontext until a root context is encountered. If a root context is encountered, a query is issued to the database for the name and value pair and the result of the database query is cached in a new context.
44 Citations
20 Claims
-
1. A method in a data processing system for a context based infrastructure to enable subset query over a cached object, the method comprising:
-
detecting a query to a root context of a context tree from a user, wherein the query includes a name and value pair;
responsive to detecting the query, traversing the context tree for a parent context of a subcontext corresponding to the name and value pair; and
determining if the parent context caches all query results. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A data processing system comprising:
-
a bus;
a memory connected to the bus, wherein a set of instructions are located in the memory; and
a processor connected to the bus, wherein the processor executes the set of instructions to detect a query to a root context of a context tree from a user, wherein the query includes a name and value pair;
traverse the context tree for a parent context of a subcontext corresponding to the name and value pair responsive to detecting the query; and
determine if the parent context caches all query results. - View Dependent Claims (9, 10, 11, 12, 13, 14)
-
-
15. A computer program product in a computer readable medium for a context based infrastructure to enable subset query over a cached object, the computer program product comprising:
-
first instructions for detecting a query to a root context of a context tree from a user, wherein the query includes a name and value pair;
second instructions for traversing the context tree for a parent context of a subcontext corresponding to the name and value pair responsive to detecting the query; and
third instructions for determining if the parent context caches all query results. - View Dependent Claims (16, 17, 18, 19, 20)
-
Specification