Example records and identifiers in this guide are synthetic test fixtures,
not customer data or customer activity.
Other SQL pairings, Atlas, replica sets, sharded clusters, and live TLS have
pending deployment-specific validation. Available Now does not imply that each
environment has been independently certified.
Prerequisites
- Create a MongoDB source connection.
- Create a MongoDB destination connection when testing delivery into MongoDB.
- Create PostgreSQL reader or writer connections as required.
- Use separate MongoDB source and destination collections.
- Prepare stable keys and supporting indexes before repeated runs.
MongoDB to PostgreSQL
- Create a pipeline with the MongoDB source.
- Discover the required
database.collectionstream. - Choose Incremental and select a stable cursor such as
updated_at. - Add the PostgreSQL destination and publish a SQL model that includes
_id, the cursor, and the required business fields. - Map the PostgreSQL destination table and select
_idas the Upsert key. - Run the initial load.
- Add or update a MongoDB document with a later cursor value and run again.
PostgreSQL to MongoDB
- Create a pipeline with the PostgreSQL source.
- Select the source table and configure Full Table or Incremental extraction.
- Add the MongoDB destination.
- Publish a SQL model containing a stable business key such as
id. - Set the output target to
analytics.pg_ordersand selectidas the Upsert key. - Run the pipeline, update one PostgreSQL row, and run again.
MongoDB to MongoDB
Use different source and destination collections. A pipeline targeting the same logical database and collection is rejected.- Select the source collection and use
_idas the stable record identity. - Add the destination connection and choose another database or collection.
- Publish the transformed document fields.
- Use
_idas the Upsert key. - Run twice and verify that the destination count remains stable.
_dlt* fields before MongoDB delivery.
Operational checks
- Test every connection before saving it.
- Keep source identities read-only and destination identities scoped to one database.
- Index source cursor fields and destination Upsert keys.
- Compare run row counts with direct database counts.
- Confirm a failed run does not advance the previous successful checkpoint.
- Review MongoDB index warnings before increasing batch volume.
- Never paste a complete MongoDB URI into SQL, logs, tickets, or screenshots.