Thursday, February 6, 2014

How to pull List of Indexes in MongoDB?

To see all the indexes attach with a Collection or within a database MongoDB has provided two functions. In this post we will explore these two methods.

getIndexes()

This method is use to see all the indexes define for a collection (table)

System.Indexes

This method is use to see the list of all indexes in the current databases in MongoDB.



Popular Posts

Blog Archive

Real Time Web Analytics