• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Pagination

 
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have been looking around for implementing pagination. Most of the literature point out to getting the whole records from the Database into the memory and display pagination. However I am looking at 2 level pagination, one at UI level and other at getting fix set of records from Database.

For example, I might want to show to the user only 10 records per page but would like to retrieve say about 100 records only from the database, even if the select query matches more that , say, 300 records. Getting all the 300 records at one go will be costly. So I was thinking of having another level of pagination where a parameter will specify how many records to be retrieved from the database.

I would be grateful for any help or pointers for best practices surrounding such requirement.

Thanks,
Ingudam Manoranjan
 
Ranch Hand
Posts: 893
Tomcat Server Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This link could help you, which is a summarization of discusions in the past


PaginationOrPaging
 
Ingudam Manoranjan
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Remko. Something like this is exactly what I had been looking for.
 
    Bookmark Topic Watch Topic
  • New Topic