| От | Ashley Moran |
|---|---|
| Тема | Re: What to index to speed up my UNION views? |
| Дата | |
| Msg-id | 200603280945.02978.work@ashleymoran.me.uk обсуждение |
| Ответ на | Re: What to index to speed up my UNION views? (Martijn van Oosterhout <kleptog@svana.org>) |
| Ответы |
Re: What to index to speed up my UNION views?
|
| Список | pgsql-general |
On Monday 27 March 2006 12:13, Martijn van Oosterhout wrote: > You're using UNION rather than UNION ALL where. There's a big > difference and I imagine you actually want the latter. It also makes a > big difference in query optimisation. > > If that doesn't fix it, come back with the EXPLAIN ANALYZE output of > your query. > > Have a nice day, Thanks Martin It turned out that the query being used was wrong anyway (pulling through too much data). When it was fixed it sped up greatly. I've searched on the Postgres docs and can't find an explanation of UNION ALL. How does it differ from UNION? Ashley
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера