Hi,

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).

Regards,
Thomas

Reply via email to