pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Merlin Moncure <mmoncure@gmail.com>
To: Postgresql Performance <pgsql-performance@postgresql.org>
Subject: Re: is it possible to make this faster?
Date: Fri, 26 May 2006 00:47:35 -0400
Message-ID: <b42b73150605252147h218ec25ci183283334731adbd@mail.gmail.com> (raw)
In-Reply-To: <16119.1148591497@sss.pgh.pa.us>
References: <b42b73150605251307id0e7998td4a3693f0d456f88@mail.gmail.com>
	<15919.1148590347@sss.pgh.pa.us>
	<16119.1148591497@sss.pgh.pa.us>

On 5/25/06, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Tom Lane <tgl@sss.pgh.pa.us> writes:
> > "Merlin Moncure" <mmoncure@gmail.com> writes:
> >> recent versions of mysql do much better, returning same set in < 20ms.

> Are you sure you measured that right?  I tried to duplicate this using
> mysql 5.0.21, and I see runtimes of 0.45 sec without an index and
> 0.15 sec with.  This compares to psql times around 0.175 sec.  Doesn't
> look to me like we're hurting all that badly, even without using the
> index.

Well, my numbers were approximate, but I tested on a few different
machines.  the times got closer as the cpu speed got faster.  pg
really loves a quick cpu.  on 600 mhz p3 I got 70ms on mysql and
1050ms on pg.  Mysql query cache is always off for my performance
testing.

My a and b columns were ID columns from another table, so I rewrote
the join and now pg is smoking mysql (again).

To quickly answer the other questions:

1. no, not testing innodb
2, rows are narrow

Merlin



view thread (25+ messages)  latest in thread

Message-ID: <b42b73150605252147h218ec25ci183283334731adbd@mail.gmail.com>
Permalink:  ../b42b73150605252147h218ec25ci183283334731adbd@mail.gmail.com/
Also on:    postgresql.org/message-id/b42b73150605252147h218ec25ci183283334731adbd@mail.gmail.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: mmoncure@gmail.com
  Subject: Re: is it possible to make this faster?
  In-Reply-To: <b42b73150605252147h218ec25ci183283334731adbd@mail.gmail.com>
  References: <b42b73150605251307id0e7998td4a3693f0d456f88@mail.gmail.com> <15919.1148590347@sss.pgh.pa.us> <16119.1148591497@sss.pgh.pa.us> <b42b73150605252147h218ec25ci183283334731adbd@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