This question is locked. New answers and comments are not allowed.
Hi,
in a web app I have an object with a filed that must be incremented with delta values. In order to do this I have to read the object from DB, apply delta increment to the same field and save the new value (example read 10, apply delta of 5, finally write 15). Between read and save operation it must be granted that no read and write occurs to that object.
which is the best way to do that?
thanks
b.r.
/@/
in a web app I have an object with a filed that must be incremented with delta values. In order to do this I have to read the object from DB, apply delta increment to the same field and save the new value (example read 10, apply delta of 5, finally write 15). Between read and save operation it must be granted that no read and write occurs to that object.
which is the best way to do that?
thanks
b.r.
/@/