| От | Josh Berkus |
|---|---|
| Тема | Re: left join on a view takes significantly more time. |
| Дата | |
| Msg-id | 200403311549.29211.josh@agliodbs.com обсуждение исходный текст |
| Ответ на | left join on a view takes significantly more time. (Manuel Sugawara <masm@fciencias.unam.mx>) |
| Список | pgsql-sql |
Manuel, > I'm facing a wired problem. When I left join two tables PostgreSQL is > able to do it fast using the corresponding indices, However, if I > define a simple view (to format the data) on one of the tables, the > left join does not use the indices. Is something wrong here? At a guess, the complex CASE statements are causing the planner to behave badly. What happens if you do a straight join and not a left join? Also, it's generally a good idea to put your join expression in the same order as the referenced tables. You confused me and you could confuse the planner at some stage. -- -Josh BerkusAglio Database SolutionsSan Francisco
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера