Re: Postgres performance

From: Richard Huxton <dev(at)archonet(dot)com>
To: mauro <bertolima(at)yahoo(dot)it>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Postgres performance
Date: 2005-02-24 08:05:16
Message-ID: 421D8ABC.2030601@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

mauro wrote:
> Hi, I understand this is an super-older thread!! note: i like
> postgres and not mysql!

Hi Mauro! Whether you like it or hate it, you're in the right place to
ask questions about it.

> I'm a Postgres server user: I've postgres 7.2 and 8.0 in many servers
> and I've tested performance Postgres vs MySQL and I see Postgres is
> very slow.

Very slow how - maxing out CPU or disk I/O?
On what hardware?
On what queries?
With how much data?
With how many connections?
What configuration changes have you made?

> But my question is: why? Cannot Postgres team make faster
> because cannot change internal architecture? Ok, postgres supports
> SUB-query and many super-feature, but mySQL now supports it and is
> faster!

Not always, AFAICT. The four most common reasons why PG tests slower
than Mysql are:
1. You haven't configured or have misconfigured PostgreSQL.
2. You are testing a MySQL-tuned application (lots of small, simple
queries, no views, no subselects etc)
3. You are only testing one connection (try 10,20,50 simultaneous users
and see who wins then).
4. You are not testing the transaction-safe storage systems in MySQL

See if you can answer some of the questions above and I'm sure we'll be
able to get your database server running smoothly.

--
Richard Huxton
Archonet Ltd

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Richard Huxton 2005-02-24 08:14:39 Re: Postgres 8 - problem: invalid input syntax for integer
Previous Message Michael Fuhr 2005-02-24 07:40:46 Re: Junk queries with variables?