我开始在副本模式下使用mongodb。有没有办法选择我想要从主设备同步到辅助设备的操作类型?
For example if i want to perform ONLY insert from primary to secondary BUT DON'T WANT TO performe the delete actions is it possible?Thnx!
发布于 2020-09-19 02:26:42
副本集节点之间的同步由MongoDB执行。作为数据库的用户,您无法选择同步哪些操作-所有操作都要同步。
发布于 2020-09-19 17:13:35
不在副本集中!但是,您可以让MongoDB实例“跟踪”您的主MongoDB服务器OpLog,并只插入到该实例中。检查here.
https://stackoverflow.com/questions/63957264
复制相似问题