What are Indexes in MongoDB?

In MondoDB Indexes are used to execute query efficiently. Without indexes, MongoDB must perform a collection scan, i.e. scan every document in a collection, to select those documents that match the query statement. If an appropriate index exists for a query, MongoDB can use the index to limit the number of documents it must inspect..

 

Also See : While creating Schema in MongoDB what are the points need to be taken in consideration?

Leave a Reply

Your email address will not be published. Required fields are marked *