On Thu, Jul 24, 2014 at 5:04 PM, Torgeir Veimo <[email protected]> wrote: > ...A common use case would be our job ad email subscription service, > where users can subscribe to daily or weekly delivery of new job ad > postings. The user expects to see the number of job ads matching his > subscription criteria....
You could count the nodes in a loop with it.nextNode(), but only up to N. And if you reach N display "there are more than N-1 ads matching your criteria". This will work in all cases, avoid scaling issues and provide relevant information to the user. -Bertrand
