Working with MongoDB Indexes


 

This article is part of Robert Sheldon’s continuing series on Mongo DB. To see all of the items in the series, click here.

Throughout this series, I’ve covered a number of topics about working with MongoDB collections and their data. One topic I have not covered is how to work with indexes. Similar to a relational database system, MongoDB lets you create indexes on your collections to help improve query read performance. You can create an index on one or more fields, even if those fields contain embedded documents, geospatial data, or date and time values.

In this article, I