| От | Tom Lane |
|---|---|
| Тема | Re: order of nested loop |
| Дата | |
| Msg-id | 17457.1055891222@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | order of nested loop (Joseph Shraibman <jks@selectacast.net>) |
| Список | pgsql-general |
Joseph Shraibman <joseph@xtenit.com> writes:
> 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.
What filter? The scan is producing 250 thousand rows, man! You expect
it to join 250k rows in no time flat?
You can try forcing merge or nestloop joins with the enable_foo
switches, but I suspect you'll find that for the problem as posed,
this is the best plan available. To make it go faster you will need a
way to eliminate a large percentage of one or both tables before the
join happens.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера