Re: decompose big queries

Поиск
Список
Период
Сортировка
От Edson Carlos Ericksson Richter
Тема Re: decompose big queries
Дата
Msg-id 40cd1824-1dd0-1aad-2c8d-c34ee510b5c5@simkorp.com.br
обсуждение исходный текст
Ответ на decompose big queries  (hmidi slim <hmidi.slim2@gmail.com>)
Ответы Re: decompose big queries  (pinker <pinker@onet.eu>)
Список pgsql-general
Em 05/04/2018 19:39, hmidi slim escreveu:
> Hi,
> I want to know what are the best practice to use in order to decompose 
> a big query which contains so many joins.Is it recommended to use 
> stored procedures ? or is there any other solution?
>

I don't know if there are best practices (each scenario requires its own 
solution), but for plain complex SELECT queries, I do use "WITH" 
queries... They work really well.

https://www.postgresql.org/docs/9.6/static/queries-with.html


Regards,

Edson


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

Предыдущее
От: Tomas Vondra
Дата:
Сообщение: Re: ERROR: found multixact from before relminmxid
Следующее
От: pinker
Дата:
Сообщение: Re: decompose big queries