7장. Single Document Atomicity
한 document의 write는 atomic하다. order의 items, total, status가 aggregate로 함께 변하면 transaction 없이 일관성을 얻을 수 있다. 이것이 좋은 embedding의 이점이다.
compare-and-set filter {_id,version}와 $inc:{version:1}로 concurrent update를 감지한다.
WEBBOOK CHAPTER
한 document의 write는 atomic하다. order의 items, total, status가 aggregate로 함께 변하면 transaction 없이 일관성을 얻을 수 있다. 이것이 좋은 embedding의 이점이다.
compare-and-set filter {_id,version}와 $inc:{version:1}로 concurrent update를 감지한다.