1.

An index can support sort operations on a non-prefix subset of the index key pattern using _________ condition.(a) predicate(b) selection(c) equality(d) none of the mentionedThis question was addressed to me during an interview.My query is from Indexing Strategies topic in chapter Index/Indexing Concepts of MongoDB

Answer» CORRECT ANSWER is (c) equality

Best explanation: Query MUST include equality conditions on all the prefix keys that precede the SORT keys.


Discussion

No Comment Found

Related InterviewSolutions