Hello I am in the middle of writing my first serious app on app-engine and am a little unsure as to what the best way is to implement optimistic locking.
I'm sending a timestamp to the client and checking that it has not changed when the entity is updated but what has me stumped is how to avoid a potential race condition using the datastore. With traditional SQL I can simply do the check and update in a single step by using update x where y but there appears to be no equivalent on appengine so I am having to do the check and update in separate steps (hence the potential for a race condition) Any suggestions greatly appreciated Thanks Andy --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---