From: Rod Taylor <rbt@rbt.ca>
To: Ron Johnson <ron.l.johnson@cox.net>
Cc: PgSQL Performance ML <pgsql-performance@postgresql.org>
Subject: Re: LOCK TABLE & speeding up mass data loads
Date: 25 Jan 2003 14:07:46 -0500
Message-ID: <1043521665.58142.135.camel@jester> (raw)
In-Reply-To: <1043521053.818.32.camel@haggis>
References: <1043521053.818.32.camel@haggis>
On Sat, 2003-01-25 at 13:57, Ron Johnson wrote:
> Hi,
>
> Would LOCK TABLE ACCESS EXCLUSIVE MODE speed things up, when I have
> a script that loads data by setting transactions, and then committing
> works after every few thousand INSERTs?
If you're the only person working on the database, then no. If you're
fighting for resources with a bunch of other people -- then possibly,
but the others won't get anything done during this timeframe (of
course).
Oh, and you're using COPY right?
--
Rod Taylor <rbt@rbt.ca>
PGP Key: http://www.rbt.ca/rbtpub.ascAttachments:
signature.asc (application/pgp-signature, 186B) download
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-performance@postgresql.org
Cc: rbt@rbt.ca, ron.l.johnson@cox.net
Subject: Re: LOCK TABLE & speeding up mass data loads
In-Reply-To: <1043521665.58142.135.camel@jester>
References: <1043521053.818.32.camel@haggis> <1043521665.58142.135.camel@jester>
* 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