Hi Alex,

Supplying an order by constraint does not always solve the problem of
node/rowIterator.getSize() returning -1.


                select * from [my:order] as orders
                where orders.[orderStatus] = 2
                order by orders.[jcr:created] asc

The above query returns the correct amount of nodes BUT
nodeIterator.getSize() returns -1.



                select * from [my:order] as orders
                order by orders.[jcr:created] asc

The above query returns the correct amount of nodes AND
nodeIterator.getSize() returns the correct value.

So there are cases when supplying order by DOES NOT force a count.

Sorry if I am misunderstanding you.
-- 
View this message in context: 
http://jackrabbit.510166.n4.nabble.com/NodeIterator-getSize-returns-1-for-query-with-order-by-clause-tp1839436p2067212.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.

Reply via email to