From: Merlin Moncure <mmoncure@gmail.com>
To: Andy Colson <andy@squeakycode.net>
Cc: Corin <wakathane@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: mysql to postgresql, performance questions
Date: Sun, 21 Mar 2010 18:43:06 -0400
Message-ID: <b42b73151003211543w764cfb9bwe3666671310b875a@mail.gmail.com> (raw)
In-Reply-To: <4BA596D2.4050406@squeakycode.net>
References: <4BA23936.2030507@gmail.com>
<4BA596D2.4050406@squeakycode.net>
On Sat, Mar 20, 2010 at 11:47 PM, Andy Colson <andy@squeakycode.net> wrote:
> Don't underestimate mysql. It was written to be fast. But you have to
> understand the underling points: It was written to be fast at the cost of
> other things... like concurrent access, and data integrity. If you want to
> just read from a database, PG probably cant beat mysql. But heres the
> thing, your site does not just read. Nor does it fire off the same sql 10
> times. So not a good test.
for non trivial selects (myisam has no transaction overhead so can
usually edge out pg in row by row ops), and without taking multi user
issues into account, it's often going to come down to who generates a
better plan. postgres has more plan options and a better statistics
model and can usually beat mysql on many types of selects.
updates w/myisam are where mysql really shines in single user apps.
the reason is obvious: no mvcc means the heap can often be updated in
place.
merlin
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 using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: mmoncure@gmail.com, andy@squeakycode.net, wakathane@gmail.com
Subject: Re: mysql to postgresql, performance questions
In-Reply-To: <b42b73151003211543w764cfb9bwe3666671310b875a@mail.gmail.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