Alex - if you upgrade you can try the option that Marcel is suggesting
(which is a jackrabbit specific thing, presuambly set in the repository.xml?
Marcel ?).
From the looks of it its 1.1 only and up.
Michael.
On 2/5/07, Marcel Reutegger <[EMAIL PROTECTED]> wrote:
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