Re: [SQL] Slow Inserts Again - Mailing list pgsql-sql

From jwieck@debis.com (Jan Wieck)
Subject Re: [SQL] Slow Inserts Again
Date
Msg-id m10eJ8l-000EBPC@orion.SAPserv.Hamburg.dsh.de
Whole thread Raw
In response to Re: [SQL] Slow Inserts Again  ("Frank Morton" <fmorton@base2inc.com>)
List 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@debis.com (Jan Wieck) #

pgsql-sql by date:

Previous
From: "Frank Morton"
Date:
Subject: Re: [SQL] Slow Inserts Again
Next
From: Herouth Maoz
Date:
Subject: Re: [SQL] Slow Inserts Again