Google Datastore queries and eventual consistency

后端 未结 1 1509
伪装坚强ぢ
伪装坚强ぢ 2021-01-01 00:16

I would like to confirm my understanding of eventual consistency in the Google datastore. Suppose that I have an entity defined as follows (using ndb):

clas         


        
相关标签:
1条回答
  • 2021-01-01 00:55

    Scenario 1. Yes, your understanding is correct.

    Scenario 2. No, same query, so still eventually consistent.

    Scenario 3. Yes, your understanding is correct.

    Also you can avoid eventual consistency by doing everything in the same transaction, but of course this may not be applicable.

    0 讨论(0)
提交回复
热议问题