On 17.01.11 15:42, "Markus Joschko" <[email protected]> wrote:
>Does jackrabbit really make a request per next() call on the children
>iterator or does it optimize and fetches all children (as long as the
>number is reasonable low) when retrieving the iterator?
For getNodes() it uses a LazyItemIterator that fetches only on next(). In
your use case you will probably rather use getNode("childnode"), where you
fetch node by node (since your application will most probably know what
the child nodes are).
But when talking about a few child nodes that won't make any difference at
all.
Finally, as noted before, if you do have use cases which fetch a lot of
different nodes (or better say: in all cases) your repository will be much
faster if you use a "local" persistence manager with no network connection
and no roundtrips.
Regards,
Alex
--
Alexander Klimetschek
Developer // Adobe (Day) // Berlin - Basel