azure-documentdb-changefeedprocessor-dotnet icon indicating copy to clipboard operation
azure-documentdb-changefeedprocessor-dotnet copied to clipboard

Question: Change ordering - will the final version of a document always be presented in the case of an update?

Open bartelink opened this issue 5 years ago • 4 comments

Can the ChangeFeed always be relied on to present the final version of a document in its correct sequence ?

i.e. (under the same partition key value) if I insert doc 1 (call that edition 1a), then insert doc 2 in a separate transaction, then insert doc 3 and update doc 1 in the next transaction (1b),

  1. am I guaranteed I'll see either: 1a,2,3,1b or 2,3,1b ?
  2. Can I rule out seeing 1b ... 1a ?
  3. Can I rule out seeing 1a but never 1b ?
  4. I am fine with not being guaranteed to see 1a - but can you confirm this is possible ?
  5. I assume if one was to start a new projection N hours/days later, it's highly unlikely to see 1a ?
  6. Can you confirm that one'd never see 1a presented after 2 or 3 ?

Same questions as above:- even as as Partitions split or merge? (see also #124)

bartelink avatar Jan 16 '19 21:01 bartelink