Hi, I had the same problem and my solution was to go throught the cvs file line by line and create temporary smaller files that I then import in my h2 database.
Patrice Drolet On 22 oct, 13:16, ebrahim <[EMAIL PROTECTED]> wrote: > Hi, > > I have this table: > > Contents(c1 SMALLINT, id SMALLINT, Bid SMALLINT, Seq SMALLINT, off > VARCHAR(10), Duration VARCHAR(10), Line VARCHAR(10000)) > > and I have indexes on: c1, Bid, Seq > # rows = 135000 > > I'm using to import to the db: > INSERT INTO Contents SELECT * FROM CSVREAD ... > > csv file is 45MB > > it throws outofmemory exception. it works if i increase the heap (- > Xmx128m) but i don't want this > > Any hint/tune on how to avoid this. > > Thanks --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
