MongoDB Indexes (SmartBridge)

Learn how to improve MongoDB performance by learning how to create single, compound, and multikey indexes as well as how to delete indexes.

MongoDB Indexes

Unit Overview

In this unit, you will learn about indexes, how indexes support the efficient execution of queries in MongoDB, the trade-offs associated with using indexes, how to create Single Field and Compound Index, what Multikey indexes are, and how to see if queries are using indexes. Finally, you will learn how to delete an index.

Prerequisites

Lessons in this Unit

  • Lesson 1 – Using MongoDB Indexes in Collections
  • Lesson 2 – Creating a Single Field Index in MongoDB
  • Lesson 3 – Creating a Multikey Index in MongoDB
  • Lesson 4 – Working with Compound Indexes in MongoDB
  • Lesson 5 – Deleting MongoDB Indexes
  • 01.
    Lesson 1: Using MongoDB Indexes in Collections
    • Learn
    • Practice
  • 02.
    Lesson 2: Creating a Single Field Index in MongoDB
    • Learn
    • Practice
  • 03.
    Lesson 3: Creating a Multikey Index in MongoDB
    • Learn
    • Practice
  • 04.
    Lesson 4: Working with Compound Indexes in MongoDB
    • Learn
    • Practice
  • 05.
    Lesson 5: Deleting MongoDB Indexes
    • Learn
    • Practice
  • 06.
    Conclusion
    • Learn
John McCambridge I Curriculum Engineer

John McCambridge I Curriculum Engineer

John is a Curriculum Engineer on the University team at MongoDB. Before his work as a Curriculum Engineer, he was an instructor and teaching assistant for coding boot camps at UT (Austin), and UCLA. Additionally, he worked as a QA engineer for a startup called Coder and spent five years at Apple Inc. John is a passionate software engineer and eductor who enjoys taking complex topics and making them digestible for the community.

Laura Gutierrez Munoz I Senior Curriculum Developer

Laura Gutierrez Munoz I Senior Curriculum Developer

Laura Gutierrez is a computer scientist working as a MongoDB Senior curriculum developer based in Madrid (Spain) with 10+ years of experience in data modeling and data analytics.