A few latency issues... or is it just tutorial related sluggishness or is it representative of Mongos' CAP tradeoffs? I guess 'eventually consistent' kicked in by the second find query. If that is what really happened, it is really cool to visualize 'eventually consistent'!
Output from back to back db.users.find() command. It took a while for Johnny to be updated to Cash.
> db.users.find();
[
{ "_id" : { "$oid" : "4d82805ecc9374271b03dd8a" }, "name" : "Johnny", "languages" : [ "ruby", "c" ] },
{ "_id" : { "$oid" : "4d828066cc9374271b03dd8b" }, "name" : "Sue", "languages" : [ "scala", "lisp" ] }
]
> db.users.find();
[
{ "_id" : { "$oid" : "4d82805ecc9374271b03dd8a" }, "name" : "Cash", "languages" : [ "english" ] },
{ "_id" : { "$oid" : "4d828066cc9374271b03dd8b" }, "name" : "Sue", "languages" : [ "scala", "lisp" ] }
]
>
Ed: Oops. I was on the try.mongodb.org page. Not the linked article. I am trying that now.