DocumentDB-更新的会话令牌是否可以保证回读较旧的写入? [英] DocumentDB - Does a newer session token guarantee reading back older writes?

查看:60
本文介绍了DocumentDB-更新的会话令牌是否可以保证回读较旧的写入?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设我在同一集合/分区中有两个文档,它们都在版本1"上:A1B1.

Let's assume I have two documents in the same collection/partition, both at "version 1": A1, B1.

我更新A1-> A2,写操作返回会话令牌SA.
使用SA读取文档A将保证我得到版本A2.

I update A1 -> A2, the write operation returns a session token SA.
Using SA to read document A will guarantee I get version A2.

现在我更新B1-> B2,并获取新的会话令牌SB. 使用SB读取文档B将保证我得到版本B2.

Now I update B1 -> B2, and get a new session token SB. Using SB to read document B will guarantee I get version B2.

我的问题是: 使用令牌SB是否可以保证我也可以看到 older 写入内容?
IE.会用令牌SB读取A总是让我A2吗?

My question is: does using token SB guarantee I can see older writes as well?
I.e. will reading A with token SB always get me A2 ?

推荐答案

是.在您的情况下,SB> SA,因此它将确保A的最新版本.

Yes. In your case SB > SA and hence it will ensure latest version of A.

这篇关于DocumentDB-更新的会话令牌是否可以保证回读较旧的写入?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆