Re: Is replacing transactions with CTE a good idea?
От | Brian Dunavant |
---|---|
Тема | Re: Is replacing transactions with CTE a good idea? |
Дата | |
Msg-id | CAJ2+uGUYptunbADng2ywqq_pKuKSFS8aTpoLiLJz-9-qhWqcSw@mail.gmail.com обсуждение исходный текст |
Ответ на | Is replacing transactions with CTE a good idea? (Glen Huang <heyhgl@gmail.com>) |
Ответы |
Re: Is replacing transactions with CTE a good idea?
Re: Is replacing transactions with CTE a good idea? |
Список | pgsql-general |
On Thu, Apr 1, 2021 at 10:49 AM Glen Huang <heyhgl@gmail.com> wrote:
If I decide to replace all my transaction code with CTE, will I shoot myself in the foot down the road?
They can also be hard for future programmers that may not understand SQL. Make sure you comment your queries for maintainability long term.
I have yet to regret replacing a transaction with a CTE over the past decade. YMMV
В списке pgsql-general по дате отправления: