Re: LOCK TABLE & speeding up mass data loads - Mailing list pgsql-performance

From Ron Johnson
Subject Re: LOCK TABLE & speeding up mass data loads
Date
Msg-id 1043522349.818.36.camel@haggis
Whole thread Raw
In response to Re: LOCK TABLE & speeding up mass data loads  (Rod Taylor <rbt@rbt.ca>)
Responses Re: LOCK TABLE & speeding up mass data loads  (Curt Sampson <cjs@cynic.net>)
List pgsql-performance
On Sat, 2003-01-25 at 13:07, Rod Taylor wrote:
> 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).

Ok.

> Oh, and you're using COPY right?

No.  Too much data manipulation to do 1st.  Also, by committing every
X thousand rows, then if the process must be aborted, then there's
no huge rollback, and the script can then skip to the last comitted
row and pick up from there.

--
+---------------------------------------------------------------+
| Ron Johnson, Jr.        mailto:ron.l.johnson@cox.net          |
| Jefferson, LA  USA      http://members.cox.net/ron.l.johnson  |
|                                                               |
| "Fear the Penguin!!"                                          |
+---------------------------------------------------------------+


pgsql-performance by date:

Previous
From: Rod Taylor
Date:
Subject: Re: LOCK TABLE & speeding up mass data loads
Next
From: pgsql.spam@vinz.nl
Date:
Subject: Re: Mount options for Ext3?