I have an application where I have to list 30 records per JSP page. There can be any number of records in the database.
Which of the methods is faster and consumes less resources?
-use session object to store all the records and the display them on the pages (30 at a time)
-go to the database for each page and get all records and display 30 per page
Any reply will be appreciated.