本文介绍了说MongoDB在其写操作级别上是原子的,这意味着什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在阅读MongoDB的文档,但看不到它们对原子"的实际定义.有人可以帮忙解释一下吗?

I'm reading MongoDB's documentation but not seeing an actual definition of what they mean by "atomic". Can somebody help explain this, please?

推荐答案

它是指多个客户端同时更新同一记录.当两个客户端写入同一文档时,他们不会混合内容,只有一个客户端会更新文档,因此您将没有一个客户端的某些字段,而另一个客户端的其他字段.

It refers to multiple clients simultaneously updating the same record.When two clients write to the same document, they will not mix the content, only one of them will update the document, so you will not have some fields from one client and other fields from another client.

这篇关于说MongoDB在其写操作级别上是原子的,这意味着什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-22 15:16