Possible Duplicate:
Resultset in session
i have a query which builds a resultset,which is has some three lakh (300k) records.And the resultset is placed in the session.i tried to improve by iterating resultset and place it in List>.But even after using this,we have performance issues.Is there any other way for this?
It is a very bad idea to load such huge number of rows into memory and especially putting them into session. You need to implement pagination – modify the query to fetch a subset of rows and then when you need the next set execute a query again.