Skip site navigation (1) Skip section navigation (2)

Re: time sensitve: comparing performance to MySQL

From: "Merlin Moncure" <merlin(dot)moncure(at)rcsonline(dot)com>
To: "Matt Christian" <matt(at)summersault(dot)com>
Cc: <pgsql-advocacy(at)postgresql(dot)org>
Subject: Re: time sensitve: comparing performance to MySQL
Date: 2003-10-02 17:24:20
Message-ID: 303E00EBDD07B943924382E153890E5434A9E8@cuthbert.rcsinc.local (view raw, whole thread or download thread mbox)
Lists: pgsql-advocacy
The information you are looking for is indeed hard to find.  A lot of
the information on the web is inaccurate or out of date.  For truly
unbiased comparisons you need to find independent entities that have
worked with both databases.  Unfortunately many database shops (but not
all) are reluctant to publish meaningful results.  FWIW, perhaps the
advocacy site for either database is not the best place to be looking.
Duty calls, however, so I will make my case.

Here is a site comparing the relative capabilities of the architectures:

Here is an article I recently wrote about application development with
PG that may have some helpful information (no benchmarks though):

The 'speed gap' is an oversimplification that does not really exist.
From my understanding, mysql is faster for:
1. insert operations
2. update operations for 1 record
3. bulk updates
4. typical 'where id=x' select statements that return 1 row

pg is faster for:
1. multiple user workloads for non read-only applications (thanks to
2. complex queries (better optimizer, statistics)
3. development
4. transactions vs. InnoDB

#2 is probably the most relevant in your case.  #3 is strictly my
opinion, but I'm pretty well informed.  Overall, PG has a much more
concurrency friendly architecture from the ground up. 

Because you are coming from Oracle, there should be no question about
your decision.  PG has a feature set similar nearly as good as O's and a
lot of similar constructs.  Examples:
1. Sequences
2. Row level transaction locking
3. PL/SQL 
4. ?? (I've never worked with O)

By the way, I think mysql is a decent product with some nice features.
If you are planning a web app with scripting in PHP or Perl, you could
make a decent argument for mysql.  I still think PG is better, tho.


-----Original Message-----
From: Matt Christian [mailto:matt(at)summersault(dot)com] 
Sent: Thursday, October 02, 2003 12:59 PM
To: pgsql-advocacy(at)postgresql(dot)org
Cc: Mark Stosberg
Subject: [pgsql-advocacy] time sensitve: comparing performance to MySQL


I've been tasked to do some quick research on Postgres vs. MySQL that I
need to present later today. I've already done a lot of Googlin' and
reviewing of the Postgres websites.

The project at hand will be a  high-volume website with many complex
queries. It will likely use replication. Performance will be most
important for SELECT statements.

The project will be ported form an existing codebase which uses Oracle
as the backend.

I understand that Postgres has been closing the speed gap with MySQL,
but I'm having trouble finding hard data on this. What specific
information is available in this area?

Your help is appreciated!


---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

pgsql-advocacy by date

Next:From: Robert TreatDate: 2003-10-02 18:59:52
Subject: Re: time sensitve: comparing performance to MySQL
Previous:From: scott.marloweDate: 2003-10-02 17:15:45
Subject: Re: time sensitve: comparing performance to MySQL

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group