目前,我需要重新处理位于Cloudant DB ex.say fail DB中的故障记录。我需要从那里获取特定日期的记录,比如20条记录,并将它们放在Reprocess DB中。你能帮我解决一下如何批量插入20个故障记录,这些记录可以使用Node JS存储为20个不同的JSON文件。
样品申请:
{
"docs": [
{
"_id": "XXX",
"_rev": "1-XXX",
"timestamp": "2018-01-06T14:36:09.834Z",
"DocType": "CustFail",
"RequestPayload": {
},
"CustID": "4",
"Response": "Fail"
},
{
"_id": "XXX",
"_rev": "1-XXX",
"timestamp": "2018-01-06T14:36:09.834Z",
"DocType": "CustFail",
"RequestPayload": {
},
"CustID": "42",
"Response": "Fail"
}
]
}
谢谢!