You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by Hylton Peimer <Hy...@aternity.com> on 2012/03/20 08:59:15 UTC
Bulk loading nodes
I have a Jackrabbit workspace with thousands of nodes. Most of the nodes are in a tree hierarchy, of up to 7 levels.
I need to traverse the entire hierarchy which seems an extremely slow operation.
It seems each Jackrabbit makes a trip to the database for each node.
Is there a way to force Jackrabbit to bulk/eager load child nodes?
Re: Bulk loading nodes
Posted by Alexander Klimetschek <ak...@adobe.com>.
On 20.03.2012, at 08:59, Hylton Peimer wrote:
> It seems each Jackrabbit makes a trip to the database for each node.
Are you using any jcr remoting? Or do you have a remote database behind your persistence manager?
Nodes are usually fetched individually, but Jackrabbit caches them in memory. Using a local database, such as with the derby or h2 persistence managers, will be better. There is no benefit in using a remote relational database for Jackrabbit except for clustering.
Cheers,
Alex
--
Alexander Klimetschek
Developer // Adobe (Day) // Berlin - Basel