Paging

Posts   
 
    
Marcus avatar
Marcus
User
Posts: 747
Joined: 23-Apr-2004
# Posted on: 09-May-2005 17:07:54   

I am about to use LLBLGen paging features for the first time and I am wondering what would be the best way to use them... confused

In addition to selecting a subset (page) of data from the possible resultset, I am also interested in the count of the total resultset.

Should I run the same query twice, once for the data (with paging) and once for a count (without paging)?

Will SQLServer cache the query? Or is there a better more obvious way to do this? simple_smile

Marcus

Marcus avatar
Marcus
User
Posts: 747
Joined: 23-Apr-2004
# Posted on: 09-May-2005 17:44:52   

Just seen this thread which discusses the issues... http://llblgen.com/tinyforum/Messages.aspx?ThreadID=2579

Please ignore this thread.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39750
Joined: 17-Aug-2003
# Posted on: 09-May-2005 19:01:22   

Marcus wrote:

Please ignore this thread.

Must... resist.... sunglasses

Frans Bouma | Lead developer LLBLGen Pro
Marcus avatar
Marcus
User
Posts: 747
Joined: 23-Apr-2004
# Posted on: 09-May-2005 22:13:44   

stuck_out_tongue_winking_eye