1.

Which of the following method is to verify whether MongoDB used index intersection?(a) explain()(b) analyze()(c) intersect()(d) none of the mentionedThis question was addressed to me in quiz.My question is taken from Index Types in section Index/Indexing Concepts of MongoDB

Answer» RIGHT option is (a) explain()

Explanation: To determine if MongoDB used index INTERSECTION, RUN explain(); the results of explain() will include either an AND_SORTED stage or an AND_HASH stage.


Discussion

No Comment Found

Related InterviewSolutions