From: | jwieck(at)debis(dot)com (Jan Wieck) |
---|---|
To: | fmorton(at)base2inc(dot)com (Frank Morton) |
Cc: | vadim(at)krs(dot)ru, pgsql-sql(at)hub(dot)org |
Subject: | Re: [SQL] Slow Inserts Again |
Date: | 1999-05-03 13:52:11 |
Message-ID: | m10eJ8l-000EBPC@orion.SAPserv.Hamburg.dsh.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
>
> >> This last attempt, I bracket each insert statement with
> > ^^^^^^^^^^^^^^^^^^^^^
> >> "begin;" and "end;".
> >
> >Why _each_?
> >Enclose ALL statements by begin; & end; to insert ALL data
> >in SINGLE transaction:
>
> This was suggested by someone on the list so that all
> 150,000 inserts would not be treated as one large transaction.
>
> Like I said before, I have tried all suggestions without success.
For huge amounts of data I usually group the inserts into
chunks of 1000 or so and enclose the chunks by BEGIN/END.
Have you tried that already?
Jan
--
#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me. #
#======================================== jwieck(at)debis(dot)com (Jan Wieck) #
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 1999-05-03 13:52:54 | Re: [SQL] Index on date_trunc |
Previous Message | Frank Morton | 1999-05-03 13:50:21 | Re: [SQL] Slow Inserts Again |