From: | "Richard Huxton" <dev(at)archonet(dot)com> |
---|---|
To: | "Konstantinos Agouros" <elwood(at)agouros(dot)de> |
Cc: | <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Yet another Performance Question |
Date: | 2001-04-18 14:34:31 |
Message-ID: | 20010418143431.5AC5D2A3A7@mainbox.archonet.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Konstantinos Agouros <elwood(at)agouros(dot)de> said:
> On Wed, Apr 18, 2001 at 02:59:53PM +0200, Patrik Kudo wrote:
> > Hi!
> >
> > I'm not 100% sure, but I think it would be much faster if you use COPY
> > instead of INSERT when you read in a lot of data from a file.
> Well unless I am the database owner I only can do copy and the script does
> some manipulation before it inserts...
Don't forget you can do \copy from stdin so you can pipe the output of your
script to psql.
Failing that, try batching inserts in transactions, a few hundred at a time.
That can speed things up. You'll need to find what figure works best for you.
- Richard Huxton
From | Date | Subject | |
---|---|---|---|
Next Message | martin.chantler | 2001-04-18 14:52:10 | Re: Yet another Performance Question |
Previous Message | Lamar Owen | 2001-04-18 14:17:29 | Re: 7.1 rpm problem |