Haki Benita
1 min readMar 3, 2018

--

Hey A’chille, you are right — using F expression you can be sure the calcualtion is consistent.

How ever, in more complex situation where you need to do more than just increment the balance you will want to fetch the object, work on it and save it back to the database. In this case you need to make sure you properly lock the object to prevent updates to it until you are done.

--

--

Haki Benita
Haki Benita

Written by Haki Benita

Full Stack Developer, Team Leader, Independent. More from me at https://hakibenita.com

Responses (1)