Re: Horribly slow hash join

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Horribly slow hash join
Дата
Msg-id 450.1082133251@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Horribly slow hash join  ("Jim C. Nasby" <jim@nasby.net>)
Ответы Re: Horribly slow hash join  ("Jim C. Nasby" <jim@nasby.net>)
Список pgsql-performance
"Jim C. Nasby" <jim@nasby.net> writes:
> Note the time for the hash join step:

Have you ANALYZEd these tables lately?

It looks to me like it's hashing on some column that has only a small
number of distinct values, so that the hash doesn't actually help to
avoid comparisons.  The planner should know better than to choose such
a plan, but if it's working with obsolete stats ...

            regards, tom lane

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

Предыдущее
От: Mike Nolan
Дата:
Сообщение: Re: Long running queries degrade performance
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Poor performance of group by query