Re: more anti-postgresql FUD

From: Alexander Staubo <alex(at)purefiction(dot)net>
To: alexei(dot)vladishev(at)gmail(dot)com
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: more anti-postgresql FUD
Date: 2006-10-13 15:02:55
Message-ID: 9980CC2F-AB9D-4A4C-9C38-E179E669A3A4@purefiction.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

On Oct 11, 2006, at 16:54 , alexei(dot)vladishev(at)gmail(dot)com wrote:

> I'm author and maintainer of ZABBIX and the manual. I would like to
> add
> some comments to the thread.
[snip]
> I just did the test on PostgreSQL 7.4.12 and MySQL 5.0.22 (MyISAM,
> sorry had no configured InnoDB). Ubuntu 6.0.6, AMD64, 2GB, default
> database settings.

PostgreSQL 7.4 was released in Nov 2003, and 7.4.12 does not (afaik)
include any performance enhancements. MySQL 5.0.22 came out in May
2006 and, despite the low version number, includes a number of
additional features and performance enhancements.

You might start by comparing apples to apples; "apt-get install
postgresql-8.1".

> PostgreSQL does approximately 1600 records per second for the first
> 10000, then 200rps for the first 100k records, and then slower and
> slower downgrading to 10-20 rps(!!!) when reaching 300k.

You are absolutely right that PostgreSQL performs significantly worse
than MySQL at this extremely artificial test.

On my box (Dell PowerEdge 1850, dual Xeon 2.8GHz, 4GB RAM, 10kRPM
SCSI, Linux 2.6.15, Ubuntu) I get 1,100 updates/sec, compared to
10,000 updates/sec with MySQL/InnoDB, using a stock installation of
both. Insert performance is only around 10% worse than MySQL at
around 9,000 rows/sec. Curiously enough, changing shared_buffers,
wal_buffers, effective_cache_size and even fsync seems to have no
effect on update performance, while fsync has a decent effect on
insert performance.

Alexander.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Andrew - Supernews 2006-10-13 15:13:29 Re: more anti-postgresql FUD
Previous Message Erik Jones 2006-10-13 14:51:00 Re: A query planner that learns

Browse pgsql-hackers by date

  From Date Subject
Next Message Zeugswetter Andreas ADI SD 2006-10-13 15:04:18 Re: [PERFORM] Hints proposal
Previous Message Csaba Nagy 2006-10-13 14:20:08 Re: [PERFORM] Hints proposal