How to Decide to use Database Transactions

后端 未结 6 2277
小鲜肉
小鲜肉 2020-12-11 15:10

How do you guys decide that you should be wrapping the sql in a transaction?

Please throw some light on this.

Cheers !!

6条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-11 15:51

    Whenever any operation falls under ACID(Atomicity,Consistency,Isolation,Durability) criteria you should use transactions

    Read this article

提交回复
热议问题