Thread: Re: Data Warehouse Reevaluation - MySQL vs Postgres --

Re: Data Warehouse Reevaluation - MySQL vs Postgres --

From
"Leeuw van der, Tim"
Date:
Hi,

I found bulk-insert to perform very slow, when compared to MySQL / Oracle. All inserts were done in 1 transaction.
However,mitigating factors here were: 
- Application was a .Net application using ODBC drivers
- PostgreSQL 7.3 running on CYGWIN with cygipc daemon
- Probably very bad tuning in the config file, if any tuning done at all
- The application was issuing 'generic' SQL since it was generally used with Oracle and MySQL databases. So no tricks
likeusing COPY or multiple rows with 1 INSERT statement. No stored procedures either. 
- When doing queries, most of the time the results were comparable to or better than MySQL (the only other database
thatI tested with myself). 


So what I can say is, that if you want fast INSERT performance from PostgreSQL then you'll probably have to do some
trickerythat you wouldn't have to do with a default MySQL installation. 

regards,

--Tim


-----Original Message-----
From: pgsql-performance-owner@postgresql.org [mailto:pgsql-performance-owner@postgresql.org]On Behalf Of Markus Schaber
Sent: Tuesday, September 14, 2004 2:15 PM
To: PostgreSQL Performance List
Subject: Re: [PERFORM] Data Warehouse Reevaluation - MySQL vs Postgres --


Hi, Mischa,

On Sun, 12 Sep 2004 20:47:17 GMT
Mischa Sandberg <ischamay.andbergsay@activestateway.com> wrote:

> On the other hand, if you do warehouse-style loading (Insert, or PG
> COPY, into a temp table; and then 'upsert' into the perm table), I can
> guarantee 2500 inserts/sec is no problem.

As we can forsee that we'll have similar insert rates to cope with in
the not-so-far future, what do you mean with 'upsert'? Do you mean a
stored procedure that iterates over the temp table?

Generally, what is the fastest way for doing bulk processing of
update-if-primary-key-matches-and-insert-otherwise operations?

Thanks,
Markus Schaber

--
markus schaber | dipl. informatiker
logi-track ag | rennweg 14-16 | ch 8001 zürich
phone +41-43-888 62 52 | fax +41-43-888 62 53
mailto:schabios@logi-track.com | www.logi-track.com

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

Re: Data Warehouse Reevaluation - MySQL vs Postgres --

From
"Steinar H. Gunderson"
Date:
On Tue, Sep 14, 2004 at 02:42:20PM +0200, Leeuw van der, Tim wrote:
> - PostgreSQL 7.3 running on CYGWIN with cygipc daemon

Isn't this doomed to kill your performance anyhow?

/* Steinar */
--
Homepage: http://www.sesse.net/

Re: Data Warehouse Reevaluation - MySQL vs Postgres --

From
Harald Fuchs
Date:
In article <BF88DF69D9E2884B9BE5160DB2B97A85010D6D5F@nlshl-exch1.eu.uis.unisys.com>,
"Leeuw van der, Tim" <tim.leeuwvander@nl.unisys.com> writes:

> So what I can say is, that if you want fast INSERT performance from
> PostgreSQL then you'll probably have to do some trickery that you
> wouldn't have to do with a default MySQL installation.

I think the word "INSERT" is superfluous in the above sentence ;-)

Contrary to MySQL, you can't expect decent PostgreSQL performance on
decent hardware without some tuning.