翻译或纠错本页面
- 复制 >
- 复制集的读与写
复制集的读与写¶
From the perspective of a client application, whether a MongoDB instance is running as a single server (i.e. “standalone”) or a replica set is transparent. However, MongoDB provides additional read and write configurations for replica sets.
注解
在分片为复制集的 分片集群 中也需要注意读操作与写操作的操作语义。
- 复制集的安全写级别
- Write concern describes the level of acknowledgement requested from MongoDB for write operations.
- 复制集读选项
- Read preference specifies where (i.e. which members of the replica set) the drivers should direct the read operations.
- 应用程序通过指定 复制集读选项 来控制驱动对发送到复制集的读操作进行管理。
- Describes the mechanics of read preference.