| От | Shaun Thomas |
|---|---|
| Тема | Re: Slow query when used in a view |
| Дата | |
| Msg-id | 513F3250.2050208@optionshouse.com обсуждение исходный текст |
| Ответ на | Re: Slow query when used in a view (Tom Lane <tgl@sss.pgh.pa.us>) |
| Список | pgsql-performance |
On 03/11/2013 06:56 PM, Tom Lane wrote: > And that means that you get the inefficient plan wherein the > foo-to-tiny_foo join is computed in its entirety. :( That's unfortunate, though I guess it makes sense. I moved the join in the view into the SELECT clause as an EXISTS, and that seems to work without major adverse effects. Apparently the tiny table really will be tiny in actual use, so impact should be minimal. I just really don't like using subselects that way. :) Thanks, Tom! -- Shaun Thomas OptionsHouse | 141 W. Jackson Blvd. | Suite 500 | Chicago IL, 60604 312-676-8870 sthomas@optionshouse.com ______________________________________________ See http://www.peak6.com/email_disclaimer/ for terms and conditions related to this email
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера