On Wed, 13 Nov 2013 20:29:51 -0200, Lance Java <[email protected]> wrote:

The grid needs the rowcount to know how many pages there are in total (eg
page 1 of N). HibernateGridDataSource and JpaGridDataSource execute 2 types of queries. 1 to get the rowcount and another to get a single page at a
time. In my opinion this is a scalable approach.

Not to mention the queries can be cached, specially the row count one.

--
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and developer
http://machina.com.br

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to