Re: left outer join terrible slow compared to inner join
В списке pgsql-general по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: left outer join terrible slow compared to inner join |
| Дата | |
| Msg-id | 14088.1062100367@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: left outer join terrible slow compared to inner join ("Clay Luther" <claycle@cisco.com>) |
| Список | pgsql-general |
"Clay Luther" <claycle@cisco.com> writes:
> Here is the output of the above explain analyze execution:
Given the presence of this sort of thing:
> -> Nested Loop (cost=1.15..17157470797.64 rows=1229 width=1976) (actual time=2723.56..104804.55 rows=1780
loops=1)
> Join Filter: (("inner".tkservice = 11) AND ("inner".paramname = 'DefaultNetworkLocale'::character
varying))
I think you are running into 7.3's inability to determine that certain
outer joins can be simplified to regular joins (specifically, if there
is a strict operator above the OUTER JOIN that will reject null-extended
rows, then there's no need to generate null-extended rows at all).
7.4 should do better.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера