On 12.09.2012, at 00:33, Thomas Mueller <muel...@adobe.com> wrote:

>> Display the actual number of search results to the user?
> 
> Do you want to risk that the method getSize() takes 1.5 hours just to
> display the actual number of search results to the user?

Well, the application can decide if there are other options such as the 
proposed hasSize() or getSize(max int) (which I like).

>> If they show "next page", they usually also show the number of results
>> and the number of pages.
> 
> Yes, I understand it is a nice feature. But it is a very dangerous feature
> given the problems described above.

Developers are used to get fast counts in RDBMS with dedicated indexes.

Cheers,
Alex

Reply via email to