google appengine datastore.get(key) 是否一致?

is google appengine datastore.get(key) consistent?

我已阅读

上的一致性页面

https://cloud.google.com/appengine/docs/java/datastore/structuring_for_strong_consistency

现在我知道要使查询保持一致,您需要使用祖先查询。

单键呢?查询例如:

实体 e = datastore.get(密钥)

它们是最终一致的还是强一致的? 请引用参考或链接

是的,具有特定密钥的获取始终是一致的。

文档对此没有尽可能清楚,但 get 不是查询:它是在基本上是键值存储的地方进行简单查找。这将始终 return 正确的数据。只有查询可能不一致,因为它们必须针对索引完成,并且索引更新可能滞后。

我能给你的唯一参考是指出 Entities, Properties and Keys page whereas data consistency is discussed on the Datastore Queries page 上讨论了 get。