Re: Speeding up select distinct

From: Laurent Martelli <laurent(at)aopsys(dot)com>
To: PFC <lists(at)boutiquenumerique(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Speeding up select distinct
Date: 2005-03-16 18:29:54
Message-ID: 87fyyv4f6l.fsf@stan.aopsys
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Wow, what a fast response !!!

>>>>> "PFC" == PFC <lists(at)boutiquenumerique(dot)com> writes:

PFC> Try :

PFC> SELECT owner from pictures group by owner;

That's a slight improvement, but there's still a seq scan on pictures:

HashAggregate (cost=114.38..114.38 rows=21 width=4) (actual time=7.585..7.605 rows=21 loops=1)
-> Seq Scan on pictures (cost=0.00..103.70 rows=4270 width=4) (actual time=0.015..3.272 rows=4270 loops=1)
Total runtime: 7.719 ms

--
Laurent Martelli
laurent(at)aopsys(dot)com Java Aspect Components
http://www.aopsys.com/ http://jac.objectweb.org

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Laurent Martelli 2005-03-16 18:31:14 Re: Speeding up select distinct
Previous Message Merlin Moncure 2005-03-16 18:19:09 Re: Speeding up select distinct