Re: [PERFORM] MySQL+InnoDB vs. PostgreSQL test?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jeff <threshar(at)torgo(dot)978(dot)org>
Cc: rigmor(dot)ukuhe(at)finestmedia(dot)com, josh(at)agliodbs(dot)com, pgsql-advocacy(at)postgresql(dot)org, pgsql-performance(at)postgresql(dot)org
Subject: Re: [PERFORM] MySQL+InnoDB vs. PostgreSQL test?
Date: 2004-02-03 17:03:11
Message-ID: 19418.1075827791@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-advocacy pgsql-performance

Jeff <threshar(at)torgo(dot)978(dot)org> writes:
> On Tue, 03 Feb 2004 11:46:05 -0500
> Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>> I did some idle, very unscientific tests the other day that indicated
>> that MySQL insert performance starts to suck with just 2 concurrent
>> inserters. Given a file containing 10000 INSERT commands, a single
>> mysql client ran the file in about a second. So if I feed the file
>> simultaneously to two mysqls in two shell windows, it should take
>> about two seconds total to do the 20000 inserts, right? The observed
>> times were 13 to 15 seconds. (I believe this is with a MyISAM table,
>> since I just said CREATE TABLE without any options.)

> MyISAM is well known to suck if you update/insert/delete because it
> simply aquires a full table lock when you perform those operations!

Sure, I wasn't expecting it to actually overlap any operations. (If you
try the same test with Postgres, the scaling factor is a little better
than linear because we do get some overlap.) But that shouldn't result
in a factor-of-seven slowdown. There's something badly wrong with their
low-level locking algorithms I think.

regards, tom lane

In response to

Browse pgsql-advocacy by date

  From Date Subject
Next Message scott.marlowe 2004-02-03 17:16:46 Re: MySQL+InnoDB vs. PostgreSQL test?
Previous Message Jeff 2004-02-03 16:55:02 Re: [PERFORM] MySQL+InnoDB vs. PostgreSQL test?

Browse pgsql-performance by date

  From Date Subject
Next Message scott.marlowe 2004-02-03 17:16:46 Re: MySQL+InnoDB vs. PostgreSQL test?
Previous Message Jeff 2004-02-03 17:00:34 Re: Database conversion woes...