I have a .jsp page where I have a GUI table that displays entries from an Oracle database. This table allows typical pagination behavior, such as FIRST, NEXT, PREVIOUS, and LAST. Records are obtained from the Java ResultSet object, which is returned from the execution of the SQL statement.
This ResultSet can be very large, so my question is:
If I have a ResultSet containing a million records, but only the data from the first ten records in the ResultSet is displayed in my table, is the data taken only at the beginning of the query for the record data or are all the data completely loaded into memory as soon as the ResultSet is returned from the SQL statement?
java database jdbc
tth May 13, '09 at 16:04 2009-05-13 16:04
source share