On 6/11/07, Johan Karlberg <[EMAIL PROTECTED]> wrote:
> If it's only the repeated execution of a count projection that bothers
> you, what Eelco suggest is likely not caching the data returned by the
> iterator, it's caching the long returned by size(). It will decrease the
> accuracy of the pager in favor of performance, and will not contribute
> to significant increase in memory use.
>
> The interface to IDataProvider does require you to provide a size, but
> it puts no limitation on how you retrieve that size. If you can
> construct a query to return the size alongside your resultset, or your
> datalayer otherwise can provide the count baed on the data query alone,
> by all means, use it.

Yep.

Eelco

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to