DataX icon indicating copy to clipboard operation
DataX copied to clipboard

mongodbwriter的配置了upsertInfo,但是没有对upsertKey进行更新,还是插入所有数据。

Open Faynman-Dragon opened this issue 8 years ago • 3 comments

配置如下:

"upsertInfo": {
     "isUpsert": "true",
     "upsertKey": "unique_id"
}

Faynman-Dragon avatar Feb 05 '18 01:02 Faynman-Dragon

发现提供的配置有点出入,使用以下配置就可以更新了,不过删除的数据不能进行删除操作。

"writeMode": {
							"isReplace": "true",
							"replaceKey": "unique_id"
						},

Faynman-Dragon avatar Feb 05 '18 03:02 Faynman-Dragon

您好,您知道如果mongo连接需要认证,要怎么写配置文件吗

celestewang1026 avatar May 09 '18 09:05 celestewang1026

parameter:{
"address": ["127.0.0.1:27017"],
"userName": "",
"userPassword": "",
"dbName": "tag_per_data",
"collectionName": "tag_data12"
...
}

Faynman-Dragon avatar May 09 '18 09:05 Faynman-Dragon