Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to retrieve results from DB in sections

Status
Not open for further replies.

bthale

Programmer
Oct 31, 2001
108
US
I have a query that sometimes returns a ResultSet that is too large for memeory (yes, I have added the java params to set the memory as high as possible, but still crashes). Is there a way to limit the size and still retrieve everything in segments or sessions?
Example, the full results will return 10,000 rows, but it's too large so I want to get 5,000 rows, then the next 5,000 rows. We are using Spring jdbc classes and I can't seem to find a way to do it using getMoreResults and setMaxRows
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top