jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Guggisberg (JIRA)" <j...@apache.org>
Subject [jira] Created: (JCR-2442) make internal item cache hierarchy-aware
Date Wed, 16 Dec 2009 13:43:18 GMT
make internal item cache hierarchy-aware
----------------------------------------

                 Key: JCR-2442
                 URL: https://issues.apache.org/jira/browse/JCR-2442
             Project: Jackrabbit Content Repository
          Issue Type: Improvement
          Components: jackrabbit-jcr2spi
            Reporter: Stefan Guggisberg
            Assignee: Michael Dürig


currently there are 2 configuration parameters which affect the performance of client-sided
tree traversals:

- fetch-depth
- size of item cache

my goal is to minimize the numbers of server-roundtrips triggered by traversing the node hierarchy
in the client.

the current eviction policy doesn't seem to be ideal for this use case. in the case of relatively
deep tree structures
a request for e.g. '/foo' can easily cause a cache overflow and root nodes might get evicted
from the cache.
a following request to '/foo' cannot be served from cache but will cause a deep fetch again,
depsite the fact
that the major part of the tree structure is still in the cache.

increasing the cache size OTOH bears the risk of OOM errors since the memory footprint of
the cached state seems to be quite large.

using a LRU eviction policy and touching every node along the parent hierarchy when requesting
an item might be a solution.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message