jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amir Mistric" <amist...@nemours.org>
Subject RE: Finding out if node is a last child of a parent
Date Wed, 08 Aug 2007 12:03:31 GMT
OK

Thanks for the pointers, I will go with the iteration then.

Thanks
 
Amir
 

> -----Original Message-----
> From: Jukka Zitting [mailto:jukka.zitting@gmail.com] 
> Sent: Wednesday, August 08, 2007 7:59 AM
> To: users@jackrabbit.apache.org
> Subject: Re: Finding out if node is a last child of a parent
> 
> 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