Re: Is Oracle really so much faster

From: Alvar Freude <alvar(dot)freude(at)merz-akademie(dot)de>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Is Oracle really so much faster
Date: 2001-02-01 21:57:25
Message-ID: 3A79DBC5.3E8AE517@merz-akademie.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

Konstantinos Agouros schrieb:
>
> When I insert I do something like $dbh->{'AutoCommit'} = 0 and every 100,000
> entries or so I do a commit.

try to make the commit every 500 or 1000 inserts. It seems to me, that
PG slow down if there are lots of MBs waiting for commit ...
And also try to make a lot of inserts in one statement (50 or 100 is
OK), this reduces some overhead.

> I use DBI's prepard_statements, although if I re-
> member the manpage correctly that does not have too much impact on PG?

at least it reduces the perl time. I testes it sometime ago: With very
simple (!) statements, it was twice faster then without, as far as i
remember.


Ciao
Alvar

--
Alvar C.H. Freude | alvar(dot)freude(at)merz-akademie(dot)de

Demo: http://www.online-demonstration.org/ | Mach mit!
Blast-DE: http://www.assoziations-blaster.de/ | Blast-Dich-Fit
Blast-EN: http://www.a-blast.org/ | Blast/english

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Franck Martin 2001-02-01 22:23:45 RE: GIS-type databases using PostgreSQL
Previous Message Mikheev, Vadim 2001-02-01 20:55:02 RE: Is Oracle really so much faster