• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Which one to use ResultSet or CashedRowSet?

 
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
I need to display 2031 pages in my jsp (with pagination) and at the top inside grid i will be diaplying 16 rows i.e 16 record per page.
If i ma fetching all the 2031 * 16 record and displaying first 16 records and puting the remainig record in a pagination class , so that nest time onward if i click any of 2 - 2031 page i wll fetch corresponding record for the selected page from the paginatin class. this works fine , but because i m fetching all the record at a time , theer is a performance pblm.

So i need to hit the database for each page click.
For this which one would be a better optin ResultSet or CachedRowSet?



Thanks
Amarshi
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you know you are using paging why get all the records at once? This kind of defeats one of the purposes of paging. Caching c32000 records sounds like a bad thing to do.
 
reply
    Bookmark Topic Watch Topic
  • New Topic