Re: way to speed up a SELECT DISTINCT?

From: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
To: Seth Ladd <seth(at)picklematrix(dot)net>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: way to speed up a SELECT DISTINCT?
Date: 2003-10-10 11:05:27
Message-ID: 20031010190403.E61002-100000@houston.familyhealth.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

> Thanks for the tip, I'll give this a shot soon. I am curious, your
> example above does not use GROUP BY yet you have an INDEX SCAN. I am
> using a similar query, yet I get a full table scan. I wonder how they
> are different?

Please send us the results of EXPLAIN ANALYZE the query. The EXPLAIN
results usually aren't too interesting for degenerate queries.

Also, make sure you have run ANALYZE on your database.

Chris

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Peter Childs 2003-10-10 11:17:10 Re: way to speed up a SELECT DISTINCT?
Previous Message Shridhar Daithankar 2003-10-10 11:00:30 Re: way to speed up a SELECT DISTINCT?