Notwithstanding the suggestion for how to change our apps, is there
any hope that oak will provide a total count of hits for query results
sometime soon or in the future?

On 28 July 2014 20:47, Bertrand Delacretaz <[email protected]> wrote:
> 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



-- 
-Tor

Reply via email to