Learn about the setup of basic indexing functionality, and see a demonstration.
- [Kirsten] Let's go ahead and bring the data back…into the database.…Since we've removed the collection,…we'll need to import the collection again.…Open your terminal.…If the Mongo client is still running,…go ahead and Control C to quit.…Make sure you're exercise file directory…for this section.…We'll run the Mongo import command again.…If you take a look at the JSON file for this module,…you'll see that another field has been added,…and we'll work with that a bit later.…So mongoimport.…Again, db learning_mongo,…collection tours jsonArray,…file tours.json.…
Great!…Now that we've got the data in the database,…let's start thinking about indexes.…When we were setting up the original numbers collection,…we added a simple index of a single field…to speed the lookups,…and it made a huge difference.…But that was a very simple example,…and we want to make indexes that make sense…for the data we have and the queries we think…people will want to make.…We might want to be able to find…which tours are in a package,…which tours match a query for length and price,…
Author
Released
5/2/2017- 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
- Aggregation
- Replication and sharding
Skill Level Intermediate
Duration
Views
Related Courses
-
Introduction
-
Welcome39s
-
Exercise files57s
-
Install MongoDB for Windows2m 41s
-
Install MongoDB for OS X2m 37s
-
Environment setup2m 38s
-
-
1. Understand MongoDB
-
Why Mongo?3m 37s
-
Document-oriented data3m 42s
-
Embed or reference?3m 31s
-
Performance4m 8s
-
-
2. Explore the System
-
Explore the Mongo shell6m 27s
-
Mongo shell operations5m 31s
-
Simple indexing5m 45s
-
-
3. Build an Application in Node
-
Node MongoDB setup4m 59s
-
-
4. Advanced Topics
-
Unique indexes4m 34s
-
Text indexes4m 49s
-
Model your schema6m 46s
-
Aggregation3m 8s
-
Replication and sharding4m 6s
-
-
Conclusion
-
Next steps49s
-
- 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.
CancelTake 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.
Share this video
Embed this video
Video: Simple indexing