[Ur] solution to the DB chicken and egg problem?
Adam Chlipala
adamc at csail.mit.edu
Tue Apr 4 07:37:01 EDT 2017
On 04/03/2017 11:17 PM, Artyom Shalkhakov wrote:
> 2017-04-04 4:42 GMT+06:00 Ziv Scully <zivscully at gmail.com>:
>> My understanding is that Ur/Web already packages entire page handlers as a
>> single transaction. You don't have to worry about two dml statements in the
>> same page handler being interrupted in between by another thread: all the
>> SQL happens at "the same time" when the page handler finishes. (According to
>> the manual, this is guaranteed by later Postgres versions, but other DBMSs
>> are flaky.)
>>
> Does Ur/Web implement application transactions transparently to the
> programmer? Or does it use database transactions throughout?
Every page handler invocation runs in its own transaction.
More information about the Ur
mailing list