From: jwieck@debis.com
To: fmorton@base2inc.com
Cc: vadim@krs.ru
Cc: pgsql-sql@hub.org
Subject: Re: [SQL] Slow Inserts Again
Date: Mon, 3 May 1999 15:52:11 +0200 (MET DST)
Message-ID: <m10eJ8l-000EBPC@orion.SAPserv.Hamburg.dsh.de> (raw)
In-Reply-To: <06c001be956b$e35db0c0$8355e5ce@base2inc.com>
>
> >> 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) #
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: jwieck@debis.com, fmorton@base2inc.com, vadim@krs.ru, pgsql-sql@hub.org
Subject: Re: [SQL] Slow Inserts Again
In-Reply-To: <m10eJ8l-000EBPC@orion.SAPserv.Hamburg.dsh.de>
References: <06c001be956b$e35db0c0$8355e5ce@base2inc.com> <m10eJ8l-000EBPC@orion.SAPserv.Hamburg.dsh.de>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox