Re: order of nested loop

Поиск
Список
Период
Сортировка
От Joseph Shraibman
Тема Re: order of nested loop
Дата
Msg-id 3EEF9C4E.6070300@xtenit.com
обсуждение исходный текст
Ответ на Re: order of nested loop  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Tom Lane wrote:
> Joseph Shraibman <jks@selectacast.net> writes:
>
>>How do I read that?  Is it creating a hash out of the data in d, then
>>going through u doing a join?
>
>
> Yeah.  Given the numbers of rows involved, the plan seems pretty
> reasonable --- I doubt you can do a lot better within the context
> you're showing here.  To make it faster you'll have to find a way
> to not need to look at all the rows.
>
>             regards, tom lane
Well there is no reason for it to look at all the rows in d, since it has a filter on u
that should produce much less rows than there on in d.  In both the plan and the actual
the rows returned from u are less than the rows from d



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

Предыдущее
От: nikolaus@dilger.cc
Дата:
Сообщение: Re: [PERFORM] Interesting incosistent query timing
Следующее
От: "Ivar"
Дата:
Сообщение: Re: How to insert unicode strings ?