注:
(1)全量订阅,mongodb会自动创建表,暂时不支持truncate和drop清理表
(2)需要使用java版本订阅
(3)zcbus-7.6-6-20210511之后版本支持MongoDB数据库订阅
(4)需要配置applybykeys,配置主键

数据库配置:

全量速度:

查看所有数据库

> show dbs
admin   0.000GB
config  0.000GB
dt      0.442GB
local   0.000GB

切换到指定数据库

> use dt
switched to db dt

查看已有集合

> show collections
bus_push_capture
bus_push_exception_data
test
test_string

集合查询

> db.test.find()
{ "_id" : "1", "id" : "1", "name" : "ss", "col1" : null, "col2" : "aaa", "col3" : "0", "update_time" : "2022-03-14 14:27:57" }
{ "_id" : "2", "id" : "2", "name" : "ss", "col1" : null, "col2" : "aaa", "col3" : "0", "update_time" : "2022-03-14 14:31:20" }
{ "_id" : "3", "id" : "3", "name" : "ss", "col1" : "ss", "col2" : "ss", "col3" : "1", "update_time" : "2022-03-15 09:11:39" }
文档更新时间: 2023-06-30 22:30   作者:阿力