Re: queries with lots of UNIONed relations

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: queries with lots of UNIONed relations
Дата
Msg-id 18364.1294960045@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: queries with lots of UNIONed relations  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-performance
Robert Haas <robertmhaas@gmail.com> writes:
> Yeah, I'm all wet, because you'd still have to re-de-duplicate at the
> end.  But then why did the OP get a speedup?  *scratches head*

He was reporting that 2 levels of hashing was faster than sort+uniq
(with the sorts swapping to disk, no doubt).  One level of hashing
should be faster yet, but maybe not by enough to be obvious as long
as you don't start to swap.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: queries with lots of UNIONed relations
Следующее
От: Jon Nelson
Дата:
Сообщение: Re: queries with lots of UNIONed relations