jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcel Reutegger <marcel.reuteg...@gmx.net>
Subject Re: NodeIterator very slow
Date Mon, 05 Feb 2007 13:02:24 GMT
Sridhar Raman wrote:
> When does the query actually get executed? This is my code:
>      try
>      {
>         qr = query.execute();
>         entiter = qr.getNodes();
>      }
>      catch (Exception e)
>      {
>         logger.error("Executing entity query", e);
>      }
> 
> These two statements are done quite quickly. And when I inspect the entiter
> variable, it shows 2000 nodes.
> 
> It's when I do either an entiter.hasNext() or an entiter.nextNode() that 
> the
> problem occurs. Will your suggestions of config tweaks help here?

Then it's probably the document order which is calculated when you access the 
first node of the query result:

>> - disable document order on the query result
>>    See: http://issues.apache.org/jira/browse/JCR-145

regards
  marcel

Mime
View raw message