Hi,

A solution is to use

CREATE TABLE Contents(c1 SMALLINT, id SMALLINT, Bid SMALLINT, Seq SMALLINT, off
VARCHAR(10), Duration VARCHAR(10), Line VARCHAR(10000))
AS SELECT * FROM CSVREAD...

Regards,
Thomas


On Wed, Oct 22, 2008 at 7:16 PM, 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to