| От | Tom Lane |
|---|---|
| Тема | Re: Lot'sa joins - performance tip-up, please? |
| Дата | |
| Msg-id | 17793.1146679117@sss.pgh.pa.us обсуждение |
| Ответ на | Lot'sa joins - performance tip-up, please? (Mario Splivalo <msplival@jagor.srce.hr>) |
| Ответы |
Re: Lot'sa joins - performance tip-up, please?
|
| Список | pgsql-performance |
Mario Splivalo <msplival@jagor.srce.hr> writes:
> I have a quite large query that takes over a minute to run on my laptop.
The EXPLAIN output you provided doesn't seem to agree with the stated
query. Where'd the "service_id = 1102" condition come from?
In general, I'd suggest playing around with the join order. Existing
releases of PG tend to throw up their hands when faced with a mixture of
outer joins and regular joins, and just join the tables in the order
listed. 8.2 will be smarter about this, but for now you have to do it
by hand ...
regards, tom lane
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера