jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Mueller <muel...@adobe.com>
Subject Re: count of all subfolders
Date Wed, 22 Dec 2010 09:09:34 GMT

What you could do to estimate the number of nodes per sub-tree. But this
requires some advanced knowledge about Jackrabbit internals, so this might
not be a solution for you. It requires access to the persistence manager
or backend storage:

- Get 100 or 200 node ids from the persistence manager or backend storage
- it doesn't matter what nodes ids, just read any. Plus get the total node
count (unless you only need to estimate the percentages).

- Load those nodes using the node id (UUID).

- For each of those nodes, get the path.

- Sum the counts for each parent path (using a hash map).


View raw message