开发者

App Engine: prefetch_refprops-like function for resolving lists of keys

When dealing with ReferenceProperties I often make use a function called prefetch_reprops to efficiently resolve references. However, I am currently dealing with a model that makes use of a list of db.Key instances.

Does anyone ha开发者_高级运维ve a prefetch_refprops-like function for dealing with lists of keys?

Here is a better explanation of prefetch_refprops


Just call db.get on the list of keys, exactly as the prefetch_refprops function does.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜