Re: Using CTE vs temporary tables

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: Using CTE vs temporary tables
Дата
Msg-id CAKFQuwYuTAGb4zr5M1Naj+p3tPDkJ=LZ-ZdHseoKd6GgJsMn5w@mail.gmail.com
обсуждение исходный текст
Ответ на Using CTE vs temporary tables  (hmidi slim <hmidi.slim2@gmail.com>)
Список pgsql-general
On Wed, Jul 11, 2018 at 9:30 AM, hmidi slim <hmidi.slim2@gmail.com> wrote:
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.


​Consider views and functions too.

David J.

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

Предыдущее
От: hmidi slim
Дата:
Сообщение: Using CTE vs temporary tables
Следующее
От: Ravi Krishna
Дата:
Сообщение: Re: Using CTE vs temporary tables