Thanks for the replies. I think my code example created confusion
because I used a counter update. Let's say instead that the code is:

def updateStatus(myKey, myStatus):
    entity = myRecs.get_by_key_name(myKey)
    entity.staus = status
    entity.put()

Right now I am just calling this function to update the HR entity. I
am not doing it in a transaction such as:
db.run_in_transaction(updateStatus, myKey, myStatus)

Is it ok to call this update function without doing so as part of a
transaction?? Note that there is no risk of any other calls/updates to
this record so I've got no entity contention issues?

Otherwise, thanks to Robert for answering my question.

I'll try to restate it for my situation: For any one key value, I can
only call this function at most once per second. If I have a burst of
update tasks (this is done in a task queue) for 5 different customers
(5 different key values) and the queue manager bursts them through all
at the same time, it will not take 5 seconds elapsed time (not talking
cpu time here) for all five tasks to complete.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to