Hey guys,
I currently have a problem with a web app: Obviously a web app is by nature multi-threaded. So what happens is, let's say during request #1 object A gets loaded. Shortly after, request #2 comes in and loads the same object A'. Then request A changes property B from 1 to 2, and request A' changes property C from 1 to 2.
Of course when both transactions commit, one of the updated values gets lost. I started reading into concurrency, versioning, etc. but in the meantime I was wondering if anybody had a simple solution to that problem or a link to a document that explains the possibilities.
Thanks a lot, Christoph
|