| От | Toby Corkindale |
|---|---|
| Тема | Re: Can I force a query plan to materialise part? |
| Дата | |
| Msg-id | 506A5E11.90809@strategicdata.com.au обсуждение исходный текст |
| Ответ на | Re: Can I force a query plan to materialise part? (David Johnston <polobo@yahoo.com>) |
| Список | pgsql-general |
On 02/10/12 12:44, David Johnston wrote: > On Oct 1, 2012, at 22:33, Toby Corkindale <toby.corkindale@strategicdata.com.au> wrote: > >> Hi, >> Is there any way to force the query planner to do a materialisation stage? >> >> I have a query that joins two views, and takes 28 seconds to run. >> However if I create temporary tables that contain the contents of each view, and then join them, the total time is 1.3seconds. >> >> Is there a way to hint to the query planner that it should be taking that approach? >> >> Thanks, >> Toby > > Have you tried? > > With v1 as (), v2 as () select v1 join v2 Hi David, I just tried that now, and it ran in 350ms; much faster than even the temporary-table-creating method. thanks! Toby
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера