How do I load data from MongoDB into my warehouse?
This recipe copies a collection from MongoDB into your warehouse using ingestr. The source URI uses the mongodb scheme and the source table names the database and collection together as database.collection.
Command
ingestr ingestDefined in
CLI
Works with
MongoDB to any ingestr destination
What you get
Collection loadDatabase.collection selectionIncremental sync
How it works in code
$ ingestr ingest \
--source-uri 'mongodb://localhost:27017' \
--source-table 'mydb.users' \
--dest-uri $SNOWFLAKE_URI --dest-table 'analytics.users'Run ingestr ingest and ingestr loads the MongoDB data into your warehouse.
Related use cases
Load a specific source
Replicate a Postgres database into Snowflake
How do I replicate a Postgres database into Snowflake?
Load a specific sourceReplicate a database incrementally
How do I keep a database table in sync without full reloads (CDC-style)?
Load a specific sourceLoad Google Sheets into your warehouse
How do I load a Google Sheet into my warehouse?
Move data with one command
Open source. Source URI in, destination URI out, incremental by default.