From: | Colin Wetherbee <cww(at)denterprises(dot)org> |
---|---|
To: | "Gauthier, Dave" <dave(dot)gauthier(at)intel(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Array load from remote site through Perl/DBI |
Date: | 2008-03-11 20:35:14 |
Message-ID: | 47D6ED02.4010506@denterprises.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Gauthier, Dave wrote:
> I have a perl/dbi app that loads my DB with sequential and discrete
> insert statements. Runs very fast and I’m satisfied with it. Now I
> have to run the same app from a different site, but loading my local
> DB. The “one at a time” inserts take too long, probably because of the
> client/server delays incurred with the remote DB attach.
>
> I was thinking of pooling all the data for the insert into arrays and
> then doing a single array insert, therby cutting down on all the
> back/forth. But there may be other approaches.
I suggest using COPY instead of INSERT, if all you're doing is adding
bulk data to a database.
> Again, Perl/DBI, remote attach, Running v8.2.0 on Linux
Version 8.2.6 is the latest release in the 8.2 branch. You really
shouldn't be running 8.2.0 anymore.
Colin
From | Date | Subject | |
---|---|---|---|
Next Message | sam | 2008-03-11 20:49:50 | Trouble with Savepoints in postgres |
Previous Message | Vivek Khera | 2008-03-11 20:28:12 | Re: How to convert postgres timestamp to date: yyyy-mm-dd |