Re: Postgres performance

From: Andrew Sullivan <ajs(at)crankycanuck(dot)ca>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: Postgres performance
Date: 2005-03-02 23:09:28
Message-ID: 20050302230928.GA4736@phlogiston.dyndns.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

This sort of discussion should really go onto -performance, but I'm
at pains to stomp out a common misperception.

On Wed, Mar 02, 2005 at 10:45:38PM +0100, PFC wrote:
>
> Sure, postgres is (a bit but not much) slower for a simple
> query like SELECT * FROM one table WHERE id=some number, and

This is true _only if_ nobody else is writing at the same time you
are. That is, for single-user or read-only databases, MySQL appears
to have a really significant advantage when using the standard MyISAM
table type. The problem with that table type is that it requires the
_whole table_ be locked during write operations.

In any case, for any sort of real database work, nobody sane would
use anything except the InnoDB table type. That's a more reasonable
fruit-comparison than MySQL using MyISAM. In the latter case, you
may as well compare PostgreSQL to flat file writing.

A

--
Andrew Sullivan | ajs(at)crankycanuck(dot)ca
A certain description of men are for getting out of debt, yet are
against all taxes for raising money to pay it off.
--Alexander Hamilton

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Ian Barwick 2005-03-02 23:35:19 Re: Postgres performance
Previous Message Scott Marlowe 2005-03-02 22:06:16 Re: Postgres performance