I had a discussion with a friend about MongoDb and it's atomicity, and I'd like know if he's right.. I was told, that MongoDb during an update does two atomic operations:
- it's deleting the existing document (first atomic operation);
- and inserting a new one (second atomic operation).
Which means that for a fraction of the time, the document is empty.
Even though this doesn't sound plausible to me, does anyone know for sure if this is true or not true?
Thanks a lot for you responses and would appreciate if someone could point to some online documents to read about it.
Edit: spelling