http://code.google.com/appengine/docs/python/datastore/async.html

I've read the paragraph at the linked site on this, but the wording is
not clear to me. Do I understand correctly, that get_result() is not
required in transactions, because the transaction waits with the
commit until the puts complete?

Is the example therefore sufficient to guarantee puts (or raise an
exception)?

def put():
  ... # make p1
  db.put_async(p1)
  ... # make p2
  db.put_async(p2)
  ... # log
db.run_in_transaction(put)

Is there even a point to db.put_async() in transactions? It seems to
me like transactions collect puts anyway to commit them all at once,
and don't block on puts. Is this correct?

-- 
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.

Reply via email to