【发布时间】:2009-06-25 09:07:42
【问题描述】:
我有一个要批量获取的键名列表 (键名存储在附加到实体的 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 的友好查询。
【问题讨论】:
标签: python google-app-engine google-cloud-datastore