我有一个要批量获取的键名列表(键名存储在附加到实体的 StringListProperty 中)。我的总体计划是:
usernames = userrefInstance.users # A collection of strings on another
model.
keys = [Key.from_path('User', key_name) for username in usernames]
users = db.get(keys)
我的问题 Key.from_path 是否命中数据存储?我试图尽可能快,如果 Key.from_path 命中数据存储,我需要使用另一种方式来存储键集合 - 我并不特别想将 Key 对象存储在列表属性中,因为我还提供跨 StringListPropererties 的用户友好查询。