On Fri, Jan 2, 2009 at 9:25 AM, djidjadji wrote: > parents = db.get([Entity.parent.get_value_for_datastore(entity) for > entity in result]) > > Is more efficient because you only do 1 call to the datastore, for > multiple objects.
Awesome... I thought it was not possible to get the key from a ReferenceProperty without fetching the related entity. This is a nice trick. :-) -- rodrigo --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
