Re: Sustained inserts per sec ... ?

From: Christopher Petrilli <petrilli(at)gmail(dot)com>
To: Simon Riggs <simon(at)2ndquadrant(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, jd(at)commandprompt(dot)com, "Marc G(dot) Fournier" <scrappy(at)postgresql(dot)org>, pgsql-performance(at)postgresql(dot)org
Subject: Re: Sustained inserts per sec ... ?
Date: 2005-04-05 22:55:42
Message-ID: 59d991c405040515555c77d1e@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Apr 5, 2005 3:48 PM, Simon Riggs <simon(at)2ndquadrant(dot)com> wrote:
> B-trees aren't unique to PostgreSQL; the explanation developed here
> would work equally well for any database system that used tree-based
> indexes. Do we still think that MySQL can do this when PostgreSQL
> cannot? How?
>
> Do we have performance test results showing the same application load
> without the degradation? We don't need to look at the source code to
> measure MySQL performance...

http://www.amber.org/~petrilli/diagrams/comparison_mysql_pgsql.png

That chart shows MySQL (using INSERT against MyISAM tables) and
PostgreSQL (using COPY) running with the exact same code otherwise.
Note that MySQL does hit a bit of a wall, but nothing as drastic as
PostgreSQL and actually maintains something "more flat". The red and
blue dashed lines are the 95th percentile point.

My suspicion is that what we're seeing is WAL issues, not particularly
index issues. The indices just fill up the WAL faster because there's
more data. This is a wag basically, but it would seem to explain the
difference. In both cases, the indices were identical. Five on each.

One interesting thing... PostgreSQL starts out a good bit faster, but
looses in the end.

Chris
--
| Christopher Petrilli
| petrilli(at)gmail(dot)com

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Kevin Brown 2005-04-06 04:44:56 Re: Follow-Up: How to improve db performance with $7K?
Previous Message Christopher Petrilli 2005-04-05 20:05:48 Re: Sustained inserts per sec ... ?