jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jukka Zitting" <jukka.zitt...@gmail.com>
Subject Re: Finding out if node is a last child of a parent
Date Wed, 08 Aug 2007 11:59:28 GMT
Hi,

On 8/8/07, Amir Mistric <amistric@nemours.org> wrote:
> Now the question is - what is *faster* - iterating or xpath? What do you think?

Iterating will definitely be faster, unless your node hierarchy is
very flat (i.e. lots of child nodes per parent) which is discouraged
in any case.

I agree that the solution is suboptimal, but it's about the best you
can do with the current API.

BR,

Jukka Zitting

Mime
View raw message