Re: How slow is distinct - 2nd

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: How slow is distinct - 2nd
Дата
Msg-id 20689.1033742688@sss.pgh.pa.us
обсуждение исходный текст
Ответ на How slow is distinct - 2nd  ("Michael Contzen" <Michael.Contzen@dohle.com>)
Список pgsql-sql
"Michael Contzen" <Michael.Contzen@dohle.com> writes:
> [ select distinct takes a long time on 7+ million rows ]

What do you have sort_mem set to?  The default value is mighty small,
and that would translate directly to poor performance in DISTINCT.

Still though, the speed differential against Oracle is surprising,
given that they don't seem to be using a fundamentally different
implementation.  Time to get out the profiler ...
        regards, tom lane


В списке pgsql-sql по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Rule creation
Следующее
От: Bruno Wolff III
Дата:
Сообщение: Re: How slow is distinct - 2nd