Re: Horribly slow hash join

Поиск
Список
Период
Сортировка
От Jim C. Nasby
Тема Re: Horribly slow hash join
Дата
Msg-id 20040416164644.GH87362@nasby.net
обсуждение исходный текст
Ответ на Re: Horribly slow hash join  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Horribly slow hash join  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-performance
Yes, stats are up to date, and the values should be fairly unique.

Combined with the hash aggregate problem I saw (see my other email to
the list), do you think there could be some issue with the performance
of the hash function on FreeBSD 5.2 on AMD64?

I'll post the table you requested someplace you can grab it.

On Fri, Apr 16, 2004 at 12:34:11PM -0400, Tom Lane wrote:
> "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
>

--
Jim C. Nasby, Database Consultant                  jim@nasby.net
Member: Triangle Fraternity, Sports Car Club of America
Give your computer some brain candy! www.distributed.net Team #1828

Windows: "Where do you want to go today?"
Linux: "Where do you want to go tomorrow?"
FreeBSD: "Are you guys coming, or what?"

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

Предыдущее
От: Ron St-Pierre
Дата:
Сообщение: Index Problem?
Следующее
От: Josh Berkus
Дата:
Сообщение: Re: RESOLVED: Re: Wierd context-switching issue on Xeon