Re: Query planner cost estimate less than the sum of its parts?

Поиск
Список
Период
Сортировка
От Gregory Stark
Тема Re: Query planner cost estimate less than the sum of its parts?
Дата
Msg-id 877i7hc1ha.fsf@oxford.xeocode.com
обсуждение исходный текст
Ответ на Query planner cost estimate less than the sum of its parts?  ("Scott Carey" <scott@richrelevance.com>)
Ответы Re: Query planner cost estimate less than the sum of its parts?  ("Scott Carey" <scott@richrelevance.com>)
Список pgsql-performance
"Scott Carey" <scott@richrelevance.com> writes:

> Certainly, a cost estimate that is ... LESS than one of the sub sections of
> the query is wrong.   This was one hell of a broken query, but it at least
> should have taken an approach that was not a nested loop, and I'm curious if
> that choice was due to a bad estimate here.
>
> Nested Loop IN Join  (cost=0.00..3850831.86 rows=128266 width=8)

Because it's an IN join it doesn't have to run the inner join to completion.
Once it finds a match it can return the outer tuple and continue to the next
outer tuple.

--
  Gregory Stark
  EnterpriseDB          http://www.enterprisedb.com
  Ask me about EnterpriseDB's 24x7 Postgres support!

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

Предыдущее
От: Greg Smith
Дата:
Сообщение: Re: lru_multiplier and backend page write-outs
Следующее
От: "Scott Carey"
Дата:
Сообщение: Re: Query planner cost estimate less than the sum of its parts?