Re: SELECT DISTINCT too slow

Поиск
Список
Период
Сортировка
От Florian Weimer
Тема Re: SELECT DISTINCT too slow
Дата
Msg-id 87d5dsn1mu.fsf@mid.deneb.enyo.de
обсуждение исходный текст
Ответ на Re: SELECT DISTINCT too slow  (Alvaro Herrera <alvherre@commandprompt.com>)
Список 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 по дате отправления:

Предыдущее
От: Yasir Malik
Дата:
Сообщение: Re: Am I crazy or is this SQL not possible
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Am I crazy or is this SQL not possible