Screencast MongoDB: Part 2 Database

  • Alvise Susmel
Badge student

Locked Content

A subscription is required for viewing this video. Enroll now to get full access to all Code School courses and content.

Enroll Now Sign in


  1. Robert Ligo said

    A nice refresher indeed! Thanks.

  2. dev4biz said

    Great screencast. Thanks.

  3. moncube1 said

    Thanks for your great explanations! One question that I have is how come the 'ensureIndex' method can help to reduce the time taken to one second? What is going on that makes it faster compared to the previous method you were showing before 'ensureIndex'?

  4. Kevin Hylant said

    Thanks for doing this! Very helpful to get to understand the basics!

  5. Faculty

    Alvise Susmel said

    Hi monocube, sorry I'm answering only now, I didn't see your comment. Without an "index" the database is looking at the whole collection, document by document it sees which one matches the find conditions. With 'ensureIndex' the database is setting an "index" on the property and is using a btree data structure to make the search much faster: The reason why the db is not using this technique by default is because the writes are slower (it needs to maintain the btree) and the size collection is bigger.

  6. flebber said

    There was no 3rd Screencast??

  7. josephgd said

    I enjoyed these 2 screencasts. They have provided me with a very good introduction to MongoDB.

    Are you planning to make any more of these?

  8. Ed Drain said

    it would be nice if you included a link to the first screencast in the Resources of this screencast.

About This Screencast

MongoDB is an open-source, document-oriented database, and the leading NoSQL database. In Part 2 of our MongoDB series, Alvise Susmel walks us through query operators, updating documents, indexes, and performance.

You need to be an enrolled student in order to view this video and subscribe.

Enroll Now