跳到主要内容

MongoDB

This page contains the setup guide and reference information for MongoDB.

MongoDB is a document database used for operational applications, event data, and flexible-schema workloads. Use this source to replicate selected MongoDB collections into your destination warehouse.

Prerequisites

  • A MongoDB deployment or MongoDB Atlas cluster
  • A database user with read permissions for the databases and collections you want to sync
  • Network access from Daspire to your MongoDB host or Atlas cluster

Setup guide

Step 1: Prepare MongoDB access

  1. Create a dedicated read-only database user for Daspire.
  2. Grant access to the databases and collections you want to replicate.
  3. If you use MongoDB Atlas, add Daspire's connection IPs to the network access list.
  4. Copy the connection host, port, database name, username, and password.

Step 2: Set up MongoDB in Daspire

  1. Select MongoDB from the Source list.
  2. Enter a Source Name.
  3. Enter the MongoDB host, port, database, username, and password.
  4. Select whether TLS is required for the connection.
  5. Choose the collections to sync.
  6. Click Save & Test.

Supported sync modes

FeatureSupported?
Full Refresh - OverwriteYes
Full Refresh - AppendYes
Incremental - AppendDepends on cursor availability
Incremental - Append + DedupedDepends on cursor availability

Troubleshooting

If Daspire cannot connect, confirm the network allowlist, TLS setting, credentials, and database permissions. For Atlas clusters, also confirm that the connection string points to the correct cluster and database.