Using CTE vs temporary tables

Поиск
Список
Период
Сортировка
От hmidi slim
Тема Using CTE vs temporary tables
Дата
Msg-id CAMsqVxv2OuK0YBh7zNfz8tNwaxXGu2ih+DC6D_2Z8=Zt-EjgkQ@mail.gmail.com
обсуждение исходный текст
Ответы Re: Using CTE vs temporary tables
Re: Using CTE vs temporary tables
Список pgsql-general
Hi,
I have a big query that used about 15 cte and its execution time is acceptable. I'm trying to optimize my query because it contains about 150 lines of code and becomes hard to understand it and add new filter or condition easily.
I think to change some cte with temporary tables and using indexes. I found this answer about performance between CTE and temp tables:

Any suggestion will be welcome.
Best regards.

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

Предыдущее
От: Mathieu Fenniak
Дата:
Сообщение: Optimizing execution of expensive subqueries
Следующее
От: "David G. Johnston"
Дата:
Сообщение: Re: Using CTE vs temporary tables