Thank all for your answers. What I am really confused is the official document does not say anything about the performance, while I can see clearly that in my persisted list, there is 10k objects transferred back and forth between client and server even the rowsPerPage is set to 20. I think there should be a warning there.
On Wed, Nov 13, 2013 at 9:54 AM, Thai Tran <bubu...@gmail.com> wrote: > Good morning everyone (it is morning here :D) > > According to official documentation (http://tapestry.apache.org/ > current/apidocs/org/apache/tapestry5/corelib/components/Grid.html), we > only need to set the rowsPerPage to turn the pagination on without caring > about the actual returned list 's size. Having said that, if the returned > result contains millions of records, it will kill the server memory, IMO > > According to the none-official document (http://jumpstart. > doublenegative.com.au/jumpstart/examples/tables/griddatasources), we need > to extends the GridDataSource in order to return the correct number of > records from database to server > > I am just wondering, why does the misleading first way appear in the > official document ? Or I am missing sth? > > Thai Tran > > >