Re: Ambigous Plan - Larger Table on Hash Side

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Ambigous Plan - Larger Table on Hash Side
Дата
Msg-id 9257.1520873520@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Ambigous Plan - Larger Table on Hash Side  (Narendra Pradeep U U <narendra.pradeep@zohocorp.com>)
Ответы Re: Ambigous Plan - Larger Table on Hash Side  (Andres Freund <andres@anarazel.de>)
Список pgsql-hackers
Narendra Pradeep U U <narendra.pradeep@zohocorp.com> writes:
>       Recently I came across a case where the planner choose larger table on hash side. I am not sure whether it is
anintended  behavior or we are missing something.  

Probably the reason is that the smaller table has a less uniform
distribution of the hash key.  You don't want to hash with a nonuniform
distribution of the hashtable key; if many keys go into the same bucket
then performance degrades drastically.

            regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Cast jsonb to numeric, int, float, bool
Следующее
От: Mat Arye
Дата:
Сообщение: Additional Statistics Hooks