Re: Why does the number of rows are different in actual and estimated.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Why does the number of rows are different in actual and estimated.
Дата
Msg-id 14685.1355441814@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Why does the number of rows are different in actual and estimated.  (Evgeny Shishkin <itparanoia@gmail.com>)
Ответы Re: Why does the number of rows are different in actual and estimated.  (Evgeny Shishkin <itparanoia@gmail.com>)
Список pgsql-performance
Evgeny Shishkin <itparanoia@gmail.com> writes:
> On Dec 14, 2012, at 3:09 AM, Andrew Dunstan <andrew@dunslane.net> wrote:
>> Well, it looks like it's choosing a join order that's quite a bit different from the way the query is expressed, so
theOP might need to play around with forcing the join order some. 

> OP joins 8 tables, and i suppose join collapse limit is set to default 8. I thought postgresql's optimiser is not
mysql's.

It's not obvious to me that there's anything very wrong with the plan.
An 8-way join that produces 150K rows is unlikely to run in milliseconds
no matter what the plan.  The planner would possibly have done the last
join step differently if it had had a better rowcount estimate, but even
if that were free the query would still have been 7 seconds (vs 8.5).

            regards, tom lane


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

Предыдущее
От: Evgeny Shishkin
Дата:
Сообщение: Re: Why does the number of rows are different in actual and estimated.
Следующее
От: Evgeny Shishkin
Дата:
Сообщение: Re: Why does the number of rows are different in actual and estimated.