Hi
I am using
JDBC to query a database using stmt.execute(), getting a resultset. The result set may be thousands of rows, but I only want to show a batch of 20 at a time.
The result set is a
java object and therefore takes up memory, and if there are
alot of users, alot of memory. - I get a java.lang.OutOfMemoryError Exception.
What is the best way to reduce the size of my result set just to the relevant rows? Do I need to declare a cursor? (How do I do that?) or are there better techniques?
Also we still need to know the number of rows in the entire resultset. (eg. 21 to 40 of 1000)
Thanks
[ July 11, 2003: Message edited by: Blikkies Marais ]