From the course: MongoDB C# Developer Associate Cert Prep

Unlock this course with a free trial

Join today to access over 24,900 courses taught by industry experts.

Using MongoDB indexes in collections

Using MongoDB indexes in collections - MongoDB Tutorial

From the course: MongoDB C# Developer Associate Cert Prep

Using MongoDB indexes in collections

- Hello. In this video, you'll learn about indexes. We'll discuss what indexes are, how they can improve performance and the cost of using them. We'll also review the most common index types. Indexes are special data structures that store a small portion of the collection's data in an ordered form that is easy to traverse and search efficiently. Indexes point to the document identity and allow you to look up, access and update data faster. Indexes are used in MongoDB to improve query performance. They can speed up queries, reduce disk I/O, and reduce the resources required for them. Indexes also support queries, such as equality matches and range-based operations and return sorted results. Indexes store data in an ordered form based on the index fields and value sort order that are provided when the index is created. Without indexes, MongoDB has to read every document in a collection by performing a collection scan to…

Contents