Thanks for the lead. That looks pretty good, although he didn't deal with optional properties, and the comments completely trash indentation, which makes it a bit hard to decipher the various commenter's fixes for that.
Hey Nick, you care to revisit this and make a version with *props that's robust to optional fields? Also, just like the autoretry_datastore_timeouts recipe that everyone had to copy into their code and eventually moved into the SDK, I still think this ought to be built-in to the SDK, since it's clearly something everyone needs to do, and most people probably don't, and it is pretty hard to get exactly right. -Joshua On Sep 1, 2011, at 1:29 AM, Tim Hoffman wrote: > Hi > > Have you looked at Nick Johnsons prefetch_refprops recipes. > I have even modified them so that the caches can be re-used. This can be a > big win. > > And it does the db.get on all the reference keys in one go. > > http://blog.notdot.net/2010/01/ReferenceProperty-prefetching-in-App-Engine > > T > > > -- > 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/-/F5FhkGw60QUJ. > 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. -- 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.
