pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adam Ruth <aruth@intercation.com>
To: josh@agliodbs.com
Cc: pgsql-advocacy@postgresql.org, <pgsql-performance@postgresql.org>
Subject: Re: MySQL+InnoDB vs. PostgreSQL test?
Date: Mon, 2 Feb 2004 11:06:24 -0700
Message-ID: <83927B58-55AA-11D8-99C4-000A959D1424@intercation.com> (raw)
In-Reply-To: <200402020921.12076.josh@agliodbs.com>
References: <200402020921.12076.josh@agliodbs.com>

Josh,

I evaluated MySQL + InnoDB briefly for a project, once.  I didn't get 
very far because of some severe limitations in MySQL.

I had to import all of the data from an existing database (MS SQL).  
One of the tables was about 8 million rows, 10 fields, and had 5 
indexes.  I found it quite impossible to import into MySQL.  I would 
import the data into a table with no indexes, then perform a bunch of 
manipulation on it (I wasn't just converting from MS SQL, but also 
needed to alter quite a bit of the structure).  After the manipulation, 
I would drop some columns and build the indexes.  It took MySQL over 4 
days to do this!

What I found out was that any DDL changes to a table in MySQL actually 
does this:  create a new table, copy all of the data over, then drop 
the old table and rename the new one.  Whenever I added a new index, 
MySQL would go through the process of rebuilding each previous index.  
Same thing when adding or dropping columns.

I could not find a way to import all of the data in a reasonable amount 
of time.  For comparison, it took less that 45 minutes to import all of 
the data in to PostgreSQL (that's ALL of the data, not just that one 
table).

Needless to say (but I'll say it anyway :-), I didn't get any farther 
in my evaluation, there was no point.

One more thing that annoyed me.  If you started a process, such as a 
large DDL operation, or heaven forbid, a cartesian join (what?  I never 
do that!).  There's no way to cancel it with InnoDB.  You have to wait 
for it to finish.  Hitting ctrl+c in their command line tool only kills 
the command line tool, the process continues.  Even if you stop the 
database and restart it (including with a hard boot), it will pick 
right up where it left off and continue.  That proved to be way too 
much of a pain for me.

Disclaimer:  I'm not a real MySQL expert, or anything.  There could be 
ways of getting around this, but after two weeks of trying, I decided 
to give up.  It only took me a few hours to build the requisite 
PostgreSQL scripts and I never looked back.

Adam Ruth

On Feb 2, 2004, at 10:21 AM, Josh Berkus wrote:

> Folks,
>
> I've had requests from a couple of businesses to see results of 
> infomal MySQL
> +InnoDB vs. PostgreSQL tests.    I know that we don't have the setup 
> to do
> full formal benchmarking, but surely someone in our community has gone
> head-to-head on your own application?
>
> -- 
> -Josh Berkus
>  Aglio Database Solutions
>  San Francisco
>
>
> ---------------------------(end of 
> broadcast)---------------------------
> TIP 8: explain analyze is your friend
>




view thread (27+ messages)  latest in thread

Message-ID: <83927B58-55AA-11D8-99C4-000A959D1424@intercation.com>
Permalink:  ../83927B58-55AA-11D8-99C4-000A959D1424@intercation.com/
Also on:    postgresql.org/message-id/83927B58-55AA-11D8-99C4-000A959D1424@intercation.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: aruth@intercation.com, josh@agliodbs.com
  Subject: Re: MySQL+InnoDB vs. PostgreSQL test?
  In-Reply-To: <83927B58-55AA-11D8-99C4-000A959D1424@intercation.com>
  References: <200402020921.12076.josh@agliodbs.com> <83927B58-55AA-11D8-99C4-000A959D1424@intercation.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox