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.
精彩评论