Is replacing transactions with CTE a good idea?

Поиск
Список
Период
Сортировка
От Glen Huang
Тема Is replacing transactions with CTE a good idea?
Дата
Msg-id DED55D28-088A-432E-B961-15567A5BD1CC@gmail.com
обсуждение исходный текст
Ответы Re: Is replacing transactions with CTE a good idea?  (Brian Dunavant <dunavant@gmail.com>)
Re: Is replacing transactions with CTE a good idea?  (Dave Cramer <davecramer@postgres.rocks>)
Список pgsql-general
Hi all,

From application’s standpoint, it seems using CTE saves a lot work. You no longer need to parse values out only to pass
themback in, and only one round-trip to the db server. 

If I’m not wrong, CTE is equivalent to serializable transactions? So I guess the downsize is that quarries can’t be run
inparallel? 

If I decide to replace all my transaction code with CTE, will I shoot myself in the foot down the road?


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

Предыдущее
От: Glen Huang
Дата:
Сообщение: Re: How to implement expiration in PostgreSQL?
Следующее
От: Brian Dunavant
Дата:
Сообщение: Re: Is replacing transactions with CTE a good idea?