pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Gavin Sherry <swm@alcove.com.au>
To: Joe <svn@freedomcircle.net>
Cc: pgsql-performance@postgresql.org
Subject: Re: Comparative performance
Date: Thu, 29 Sep 2005 13:46:54 +1000 (EST)
Message-ID: <Pine.LNX.4.58.0509291344540.24352@linuxworld.com.au> (raw)
In-Reply-To: <433B4AA4.9080008@freedomcircle.net>
References: <433B4AA4.9080008@freedomcircle.net>

On Wed, 28 Sep 2005, Joe wrote:

> I'm converting a relatively small database (2 MB) from MySQL to PostgreSQL.  It
> is used to generate web pages using PHP.  Although the actual website runs under
> Linux, the development is done under XP.  I've completed most of the data
> conversion and rewrite of the PHP scripts, so now I'm comparing relative
> performance.
>
> It appears that PostgreSQL is two to three times slower than MySQL.  For
> example, some pages that have some 30,000 characters (when saved as HTML) take 1
> to 1 1/2 seconds with MySQL but 3 to 4 seconds with PostgreSQL.  I had read that
> the former was generally faster than the latter, particularly for simple web
> applications but I was hoping that Postgres' performance would not be that
> noticeably slower.

Are you comparing PostgreSQL on XP to MySQL on XP or PostgreSQL on Linux
to MySQL on Linux? Our performance on XP is not great. Also, which version
of PostgreSQL are you using?

>
> I'm trying to determine if the difference can be attributed to anything that
> I've done or missed.  I've run VACUUM ANALYZE on the two main tables and I'm
> looking at the results of EXPLAIN on the query that drives the retrieval of
> probably 80% of the data for the pages in question.

Good.

>
> Before I post the EXPLAIN and the table schema I'd appreciate confirmation that
> this list is the appropriate forum.  I'm a relative newcomer to PostgreSQL (but
> not to relational databases), so I'm not sure if this belongs in the novice or
> general lists.

You can post the results of EXPLAIN ANALYZE here. Please including schema
definitions and the query string(s) themselves.

Thanks,

Gavin



view thread (25+ messages)  latest in thread

Message-ID: <Pine.LNX.4.58.0509291344540.24352@linuxworld.com.au>
Permalink:  ../Pine.LNX.4.58.0509291344540.24352@linuxworld.com.au/
Also on:    postgresql.org/message-id/Pine.LNX.4.58.0509291344540.24352@linuxworld.com.au

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: swm@alcove.com.au, svn@freedomcircle.net
  Subject: Re: Comparative performance
  In-Reply-To: <Pine.LNX.4.58.0509291344540.24352@linuxworld.com.au>

* 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