Re: way to speed up a SELECT DISTINCT? - Mailing list pgsql-performance

From Christopher Kings-Lynne
Subject Re: way to speed up a SELECT DISTINCT?
Date
Msg-id 20031010190403.E61002-100000@houston.familyhealth.com.au
Whole thread Raw
In response to Re: way to speed up a SELECT DISTINCT?  (Seth Ladd <seth@picklematrix.net>)
List 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



pgsql-performance by date:

Previous
From: Shridhar Daithankar
Date:
Subject: Re: way to speed up a SELECT DISTINCT?
Next
From: Peter Childs
Date:
Subject: Re: way to speed up a SELECT DISTINCT?