Type | Supported Version |
Self-Built MongoDB | 3.6 / 4.0 / 4.2 / 4.4 / 5.0 / 6.0 / 7.0 / 8.0 |
TencentDB for MongoDB | 3.6 / 4.0 / 4.2 / 4.4 / 5.0 / 6.0 / 7.0 / 8.0 |
Capability | Offline read | Real-time full database read |
Supported | ✓ | ✓ |
Limit | Description |
Version Requirement | MongoDB version must be 3.6 or later. |
Replica set | Must be configured in Replica Set mode to use Change Streams. |
oplog Retention | Sufficient oplog retention time is required to support incremental sync. |
System Collections | Synchronization of system collections such as system.* is not supported. |
Limit | Description |
Single document size | No more than 16 MB (MongoDB limit) |
Nesting depth | Control document nesting depth. Excessive nesting may affect performance. |
Field Type | Offline read | Real-time read |
Int32 / Int64 / Long / Double / Decimal128 | ✅ | ✅ |
Boolean / String / ObjectId / UUID / Symbol / Regex | ✅ | ✅ |
JavaScript / BinData | ✅ | ✅ |
Date / Timestamp | ✅ | ✅ |
Object / Array / Null / Undefined / MinKey / MaxKey / DBPointer | ✅ | ✅ |
Operation | Whether Supported | Description |
INSERT / UPDATE / REPLACE / DELETE | ✅ | Document-level change operation |
Operation | Whether Supported |
DROP COLLECTION / DROP DATABASE / RENAME COLLECTION | ❌ |
rs.status()
use admindb.createUser({user: "wedata_user",pwd: "your_password",roles: [{ role: "read", db: "your_database" }]})
use admindb.createUser({user: "wedata_cdc_user",pwd: "your_password",roles: [{ role: "read", db: "your_database" },{ role: "read", db: "local" } // Required for reading the oplog.]})
use localdb.oplog.rs.stats() // View the current oplog configuration.db.adminCommand({ replSetResizeOplog: 1, size: 10240 }) // Unit: MB
To modify the oplog size, you must perform the operation on each node in the replica set.
Parameter | Description | Required |
Data Source Name | Unique identifier of the data source within the workspace | Yes |
Connection Address | MongoDB connection address (see the format below) | Yes |
Database | Default database to connect | Yes |
Username. | Database connection account (if authentication is enabled) | Depends on Authentication |
Password | Database connection password (if authentication is enabled; SSM credential hosting supported) | Depends on Authentication |
Data Source Version | Yes |
Deployment Mode | Format example |
Single-node | mongodb://host:port |
Replica set | mongodb://host1:port1,host2:port2,host3:port3/?replicaSet=rsName |
Sharded cluster | mongodb://mongos1:port1,mongos2:port2 |
mongodb://10.0.0.1:27017,10.0.0.2:27017,10.0.0.3:27017/?replicaSet=rs0mongodb://10.0.0.1:27017/mydb?authSource=admin
Configuration Item | Description |
Source Table Scope | Specified collections (only the selected collections are synchronized; new collections require a restart) / regex matching (specify database name + collection name regex; new collections that match the rule are automatically added) |
Read Mode | Full + incremental / Incremental only |
Subscription Type | You can select INSERT / UPDATE / DELETE, and at least one must be selected. |
Parameter | Description |
Database / Collection | Required; supports selection or manual input. |
Filtering Condition | MongoDB query condition (JSON format) |
{"age": {"$gte": 18}, "status": "active"}{"create_time": {"$gte": {"$date": "2024-01-01T00:00:00Z"}}}
authSource configuration.db.adminCommand({ replSetResizeOplog: 1, size: 20480 })
Esta página foi útil?
Você também pode entrar em contato com a Equipe de vendas ou Enviar um tíquete em caso de ajuda.
comentários