I create HSQL database with one table
Needs["DatabaseLink`"]
dbLocation="c:\\work\\hsqlTest\\";
dbName="testDB";
dbServer=SQLServerLaunch[{dbName->dbLocation}]
dbConnectionObject=JDBC["HSQL(Server)","localhost/"<>dbName];
dbConnection=OpenSQLConnection[dbConnectionObject,"Name"->dbName,"Username"->"sa"];
But inserting large amount of data produce different errors with different insert. For example:
data=RandomReal[{-10,10},{500000,1}];
SQLInsert[dbConnection,"TestTableDouble",{"c1"},data];
produce error:
JDBC::error: connection exception: connection failure: java.lang.OutOfMemoryError: GC overhead limit exceeded >>
or
JDBC::error: GC overhead limit exceeded >>
How can I avoid this error?
PS: some inserts do not produce error
Add:
With SQLite I have the same problem, but with inserting 1000000
rows