Re: Can I force a query plan to materialise part?

Поиск
Список
Период
Сортировка
От David Johnston
Тема Re: Can I force a query plan to materialise part?
Дата
Msg-id 9D2A94AF-9495-43D9-A736-3CD68C54F967@yahoo.com
обсуждение исходный текст
Ответ на Can I force a query plan to materialise part?  (Toby Corkindale <toby.corkindale@strategicdata.com.au>)
Ответы Re: Can I force a query plan to materialise part?  (Toby Corkindale <toby.corkindale@strategicdata.com.au>)
Список pgsql-general
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

David J.



В списке pgsql-general по дате отправления:

Предыдущее
От: Toby Corkindale
Дата:
Сообщение: Can I force a query plan to materialise part?
Следующее
От: Ondrej Ivanič
Дата:
Сообщение: Re: Can I force a query plan to materialise part?