Path-caching mechanism to improve performance of path-related operations in a repository
First Claim
1. A computer-implemented method of processing path-based operations, the method comprising:
- upon determining that a path cache does not contain a first cache entry for a first node that descends from a second node in a hierarchy of nodes, determining whether the path cache contains a second cache entry that corresponds to the second node;
if the path cache contains the second cache entry, then automatically generating, based at least in part on a first pathname that is indicated in the second cache entry, a second pathname for the first node; and
if the path cache does not contain the second cache entry, then automatically determining a pathname for the second node and inserting, into the path cache, a cache entry that (a) corresponds to the second node and (b) indicates the pathname for the second node.
1 Assignment
0 Petitions
Accused Products
Abstract
A method and apparatus for processing path-based database operations is provided. According to one aspect, a path cache is maintained. For each hierarchical node that is traversed during a path-determining operation, it is determined whether a cache entry corresponding to that node is already contained in the path cache. If such a cache entry is already contained in the path cache, then the path indicated in that cache entry is used to complete the pathname for the node for which the operation is being performed. As a result, hierarchically higher nodes do not need to be traversed to complete the operation. Alternatively, if such a cache entry is not already contained in the path cache, then a cache entry for the node currently being traversed is generated and inserted into the path cache for use in subsequent path-determining operations.
156 Citations
24 Claims
-
1. A computer-implemented method of processing path-based operations, the method comprising:
-
upon determining that a path cache does not contain a first cache entry for a first node that descends from a second node in a hierarchy of nodes, determining whether the path cache contains a second cache entry that corresponds to the second node;
if the path cache contains the second cache entry, then automatically generating, based at least in part on a first pathname that is indicated in the second cache entry, a second pathname for the first node; and
if the path cache does not contain the second cache entry, then automatically determining a pathname for the second node and inserting, into the path cache, a cache entry that (a) corresponds to the second node and (b) indicates the pathname for the second node. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24)
-
Specification