Re: Optimization recommendations request - Mailing list pgsql-sql

From Joe Conway
Subject Re: Optimization recommendations request
Date
Msg-id 00f701c071f0$9a9464c0$0705a8c0@jecw2k1
Whole thread Raw
In response to Re: Optimization recommendations request  (Stephan Szabo <sszabo@megazone23.bigpanda.com>)
List pgsql-sql
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



pgsql-sql by date:

Previous
From: Stephan Szabo
Date:
Subject: Re: Optimization recommendations request
Next
From: Tom Lane
Date:
Subject: Re: Optimization recommendations request