1.

A prefix of a _______ index is a subset that consists of one or more keys at the start of the index key pattern.(a) unique(b) primary(c) compound(d) none of the mentionedI have been asked this question in unit test.Enquiry is from Indexing Strategies in portion Index/Indexing Concepts of MongoDB

Answer» RIGHT choice is (B) primary

The explanation is: If the SORT keys correspond to the index keys or an index PREFIX, MongoDB can use the index to sort the QUERY results.


Discussion

No Comment Found

Related InterviewSolutions