1.

In the mongo shell, you can use the ______ method to return a list of the indexes on a collection.(a) getallIndexes()(b) getretIndexes()(c) getIndexes()(d) none of the mentionedI had been asked this question in semester exam.I would like to ask this question from Index Management in section Index/Indexing Concepts of MongoDB

Answer» CORRECT answer is (c) GETINDEXES()

To EXPLAIN: When performing maintenance you may WANT to check which indexes EXIST on a collection.


Discussion

No Comment Found

Related InterviewSolutions