开发者

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

开发者 https://www.devze.com 2023-02-12 06:08 出处:网络
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

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

精彩评论

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