From: Tom Lane <tgl@sss.pgh.pa.us>
To: Merlin Moncure <mmoncure@gmail.com>
To: Postgresql Performance <pgsql-performance@postgresql.org>
Subject: Re: is it possible to make this faster?
Date: Thu, 25 May 2006 17:11:37 -0400
Message-ID: <16119.1148591497@sss.pgh.pa.us> (raw)
In-Reply-To: <15919.1148590347@sss.pgh.pa.us>
References: <b42b73150605251307id0e7998td4a3693f0d456f88@mail.gmail.com>
<15919.1148590347@sss.pgh.pa.us>
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.
> 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
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: tgl@sss.pgh.pa.us, mmoncure@gmail.com
Subject: Re: is it possible to make this faster?
In-Reply-To: <16119.1148591497@sss.pgh.pa.us>
* 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