1.

MongoDB uses ______ indexes to index the content stored in arrays.(a) singlekey(b) multikey(c) compkey(d) none of the mentionedI got this question by my college professor while I was bunking the class.Question is from Indexes In MongoDB in portion Index/Indexing Concepts of MongoDB

Answer»

The correct choice is (B) multikey

Explanation: If you index a field that HOLDS an array VALUE, MONGODB creates separate index ENTRIES for every element of the array.



Discussion

No Comment Found

Related InterviewSolutions