--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/Aen4pAMD2LAJ.
To post to this group, send email to google-a...@googlegroups.com.
To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
In practice, this type of method may be cheaper since you're just
doing one query and not a query followed by a batch get (which will
potentially be many RPCs). Of course, if you want everything to be
consistent then Josh's method is probably about the best you can do.
You could probably improves it a bit by caching the entities in
memcahce too; in other words, check memcache then only goto the
datastore for keys not in memcahce.
Robert