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