From: Joe Conway <jconway2@home.com>
To: Stephan Szabo <sszabo@megazone23.bigpanda.com>
Cc: PostgreSQL-SQL <pgsql-sql@postgresql.org>
Subject: Re: Optimization recommendations request
Date: Fri, 29 Dec 2000 15:39:35 -0800
Message-ID: <00f701c071f0$9a9464c0$0705a8c0@jecw2k1> (raw)
References: <Pine.BSF.4.21.0012291512120.19996-100000@megazone23.bigpanda.com>
Subject: Re: [SQL] Optimization recommendations request
>
> What does explain show for your query?
>
I sent this a week ago using the wrong (i.e. not the one I signed up with)
reply-to address, so it didn't make it to the list until just now. In the
meantime I ran explain and noticed that the index wasn't being used. So I
ran vacuum analyze and now I'm getting the expected performance (and explain
shows the index being used). If I understand the logged statistics
correctly, I'm getting results returned in anywhere from about 3 to 45 ms,
depending on cache hit rate. I also repeated my test with 15 million records
with similar results. Not bad at all!
I am still interested in any generic optimization tips for very large
tables.
Thanks for taking the time to reply!
Joe
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-sql@postgresql.org
Cc: jconway2@home.com, sszabo@megazone23.bigpanda.com
Subject: Re: Optimization recommendations request
In-Reply-To: <00f701c071f0$9a9464c0$0705a8c0@jecw2k1>
References: <Pine.BSF.4.21.0012291512120.19996-100000@megazone23.bigpanda.com> <00f701c071f0$9a9464c0$0705a8c0@jecw2k1>
* 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