DocumentDB - New session token guarantees reading of old records?

Suppose I have two documents in one collection / section, as in "version 1": A1

, B1

.

I update A1

A2

, the write operation returns a session token SA

.
Using the SA

document to read A

ensures that I get the version A2

.

Now I update B1

B2

and get a new token session SB

. Using the SB

document to read B

ensures that I get the version B2

.

My question is, does the token use the SB

guarantee that I can see old records too?

That is, reads read A

with token SB

always gets me A2

?

+3


source to share


1 answer


Yes. In your case SB> SA and hence it will provide the latest version A.



0


source







All Articles