How do you guys decide that you should be wrapping the sql in a transaction?
Please throw some light on this.
Cheers !!
Whenever any operation falls under ACID(Atomicity,Consistency,Isolation,Durability) criteria you should use transactions
Read this article