Learn about using mongoimport to pull data into the system from a JSON, CSV, or TSV file.
- [Instructor] Inserting data into mongo using the shell…or one of the language drivers is handy…but in many case you already have data…that you want to import into your database.…Whether that data is in json, csv or tsv…the mongo import command can do the work for you…without the need to write your own code.…Open your terminal to the screen your using…for the mongo client.…Control C to quit…if it's still running to get back to the shell.…Type mongo import…dash dash help…to see the options available.…
This video does have an exercise file in json…but let's go through some of the options for the file…before we look at it…to really understand what we'll be doing.…There are a variety of options we won't be using.…You can take a look at them later…to see what's possible using this tool.…The first section that's important for us right now…is the name space options.…Remember that mongo keeps items and databases…with collections that contain documents.…So when importing a file…it's important to give the database…and collection information…
- Installing MongoDB for Windows and OS X
- Why Mongo?
- Document-oriented data
- Exploring the Mongo shell
- Importing data into the database
- Building an application in Node.js
- Tuning Mongo queries
- Replication and sharding
Skill Level Intermediate
1. Understand MongoDB
2. Explore the System
3. Build an Application in Node
Node MongoDB setup4m 59s
4. Advanced Topics
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.