Re: SELECT DISTINCT too slow - Mailing list pgsql-sql

From Florian Weimer
Subject Re: SELECT DISTINCT too slow
Date
Msg-id 87d5dsn1mu.fsf@mid.deneb.enyo.de
Whole thread Raw
In response to Re: SELECT DISTINCT too slow  (Alvaro Herrera <alvherre@commandprompt.com>)
List pgsql-sql
* Alvaro Herrera:

> Miroslav ?ulc wrote:
>> The GROUP BY is really fast :-)
>
> Doh!  How does it do it?

It uses a hash table and can therefore discard duplicate rows more
quickly (essentially linear time in the number of rows if the number
of different rows is bounded).


pgsql-sql by date:

Previous
From: Yasir Malik
Date:
Subject: Re: Am I crazy or is this SQL not possible
Next
From: Tom Lane
Date:
Subject: Re: Am I crazy or is this SQL not possible