This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JDBC and the fly likes pagination strategy Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "pagination strategy" Watch "pagination strategy" New topic
Author

pagination strategy

Pravin Panicker
Ranch Hand

Joined: Oct 05, 2000
Posts: 62
Hello all,
I need to incorporate pagination with a search result.
My query may return upto a lakh records and using Tomcat with db2 7.1
( No ejbs ). What would be appropriate?
- putting the entire search result in session and retrieving them on next/previous
- or hitting the database every next/previous click. Here, I plan to store the primary keys
in session, to optimize my query


Pravin R Panicker<br />SCJP,SCWCD
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: pagination strategy
 
Similar Threads
Hibernate pagination performance problem
Pagination
Pagination
PAGINATION
Pagination