Hi All,

I am INSERTING rows into a few tables and then executing a SELECT
query made up of 8 LEFT JOINS on a very large database. The INSERT
goes well but when I execute the SELECT Statement, an OutOfMemory
exception is thrown.

I create the Statement object as follows:
Statement stmt = connection.createStatement
(ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY); and the set
FetchSize to 10 - stmt.setFetchSize(10) FOR TEST PURPOSES;
These options seem to have no effect for the H2 JDBC driver since all
results still seem to be loading into memory - shouldn't this
combination "stream" the results?

I am using H2 version 1.0.79.jar (last stable release).

I am NOT using any BINARY types in any of the tables.

Any suggestions to why this is hapenning?
Thanks
Jorge


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/h2-database?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to