当前位置:网站首页>Data_web(九)mongodb增量同步到mongodb
Data_web(九)mongodb增量同步到mongodb
2022-08-03 21:36:00 【ReadMeFrist】
1.mongodb连接、字段等
查看上一篇
2.设置辅助增量要求如下
3.json格式如下
{
"job": {
"setting": {
"speed": {
"channel": 3,
"byte": 1048576
},
"errorLimit": {
"record": 0,
"percentage": 0.02
}
},
"content": [
{
"reader": {
"name": "mongodbreader",
"parameter": {
"address": [
"192.168.1.100:27017"
],
"userName": "username",
"userPassword": "password",
"dbName": "DBname",
"collectionName": "collectionname",
"column": [
{
"name": "sourceSystem",
"type": "String"
},
{
"name": "configId",
"type": "String"
},
{
"name": "target",
"type": "String"
},
{
"name": "userName",
"type": "String"
},
{
"name": "paramJson",
"type": "String"
},
{
"name": "sendTime",
"type": "Date"
},
{
"name": "detailId",
"type": "Long"
}
],
"query": "{
\"sendTime\":{
\"$gte\":ISODate(${lastTime}),\"$lt\":ISODate(${currentTime})},\"detailType\":\"app\",\"sourceSystem\":\"qfcoss\",\"success\": {
\"$eq\": true}}"
}
},
"writer": {
"name": "mongodbwriter",
"parameter": {
"address": [
"192.168.1.101:27017"
],
"userName": "username",
"userPassword": "password",
"dbName": "DBname",
"collectionName": "collectionname",
"column": [
{
"name": "sourceSystem",
"type": "String"
},
{
"name": "app_code",
"type": "String"
},
{
"name": "target",
"type": "String"
},
{
"name": "user_name",
"type": "String"
},
{
"name": "content",
"type": "String"
},
{
"name": "send_time",
"type": "Date"
},
{
"name": "outer_id",
"type": "Long"
}
],
"upsertInfo": {
"isUpsert": false,
"upsertKey": ""
}
}
}
}
]
}
}
query筛选基本和mongodb的find方法类似 sendTime是时间格式筛选 , success是布尔值筛选 ,detailType是字符或者int筛选可以参考
边栏推荐
- 从0到1看支付
- Engineering Effectiveness Governance for Agile Delivery
- C. Divan and bitwise operations
- 【使用 Pytorch 实现入门级的人工神经网络】
- Soft exam system analysts note experience sharing: theory of protracted war
- [3D检测系列-PV-RCNN] PV-RCNN论文详解、PV-RCNN代码复现、包含官网PV-RCNN预训练权重及报错问题
- idea2021.1.3版本如何启动多个客户端程序
- CAS:908007-17-0_Biotin-azide_Biotin azide
- [kali-vulnerability exploitation] (3.2) Metasploit basics (on): basic knowledge
- CAS:1260586-88-6_Biotin-C5-Azide_Biotin-C5-Azide
猜你喜欢

False label aggregation

从0到1看支付

XSS漏洞复现

剑指 Offer 16. 数值的整数次方

idea2021.1.3版本如何启动多个客户端程序

卷起来!阿里高工携 18 位高级架构师耗时 57 天整合的 1658 页面试总结

CAS:1260586-88-6_Biotin-C5-Azide_Biotin-C5-Azide

【Odoo】硬核组件开发,全文没一句废话~

XSS online shooting range---haozi

FVCOM 3D Numerical Simulation of Hydrodynamics, Water Exchange, Dispersion and Transport of Oil Spills丨FVCOM Model Watershed, Numerical Simulation Method of Marine Water Environment
随机推荐
现网设备兼容SRv6网络演进
图神经网络怎么入门?一文带你了解图神经网络入门路径-GNN入门
【Unity3D】Tank对战
B. Paranoid String
Unification of east-west and north-south communications
win10安装及配置Gradle
CAS:1260586-88-6_生物素-C5-叠氮_Biotin-C5-Azide
测试2年6.5K,每天“911”,我的心酸经历只有我自己知道···
什么密码,永远无法被黑客攻破?
CAS:153162-70-0_N-BOC-6-生物素酰氨基己胺
2022-8-3 第七组 潘堂智 锁、多线程
VIM操作
Engineering Effectiveness Governance for Agile Delivery
电商数仓ODS层-----日志数据装载
4. 模块化编程
From September 1st, my country has granted zero-tariff treatment to 98% of tax items from 16 countries including Togo
Markdown syntax
CAS:122567-66-2_DSPE-Biotin_DSPE-Biotin
XSS练习---一次循环和两次循环问题
XSS holes emersion