Re: decompose big queries
От | pinker |
---|---|
Тема | Re: decompose big queries |
Дата | |
Msg-id | 1523021756830-0.post@n3.nabble.com обсуждение исходный текст |
Ответ на | Re: decompose big queries (Edson Carlos Ericksson Richter <richter@simkorp.com.br>) |
Ответы |
Re: decompose big queries
Re: decompose big queries |
Список | pgsql-general |
Edson Carlos Ericksson Richter wrote > 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. Be cautious with CTE's. They weren't meant to be an alternative to subqueries and will probably change the way your query is executed, because they are optimisation fences: https://blog.2ndquadrant.com/postgresql-ctes-are-optimization-fences/ -- Sent from: http://www.postgresql-archive.org/PostgreSQL-general-f1843780.html
В списке pgsql-general по дате отправления: