Re: Abysmal hash join

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Abysmal hash join
Дата
Msg-id 22641.1157984931@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Abysmal hash join  (Florian Weimer <fweimer@bfk.de>)
Ответы Re: Abysmal hash join  (Florian Weimer <fweimer@bfk.de>)
Список pgsql-performance
Florian Weimer <fweimer@bfk.de> writes:
>          ->  Bitmap Index Scan on large_rel_1_field_1  (cost=0.00..2003.09 rows=193739 width=0) (actual
time=0.148..0.148rows=12 loops=1) 
>                Index Cond: (n.field_1 = "outer".field_2)

What you need to look into is why that rowcount estimate is off by four
orders of magnitude.

The estimate on the smaller table is only off by a factor of 75 but
that's still pretty darn awful.  Are the statistics up to date?  Maybe
larger stats targets would help.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Performance problem with joins
Следующее
От: Florian Weimer
Дата:
Сообщение: Re: Abysmal hash join