Re: is it possible to make this faster?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Merlin Moncure" <mmoncure(at)gmail(dot)com>, "Postgresql Performance" <pgsql-performance(at)postgresql(dot)org>
Subject: Re: is it possible to make this faster?
Date: 2006-05-25 21:11:37
Message-ID: 16119.1148591497@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> writes:
> "Merlin Moncure" <mmoncure(at)gmail(dot)com> writes:
>> recent versions of mysql do much better, returning same set in < 20ms.

> Well, since they don't do MVCC they can answer this query from the
> index without going to the heap at all. But that still seems remarkably
> fast for something that has to grovel through 300k index entries.

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.

regards, tom lane

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Scott Marlowe 2006-05-25 21:15:29 Re: is it possible to make this faster?
Previous Message Steinar H. Gunderson 2006-05-25 21:08:50 Re: is it possible to make this faster?