1.

Point out the correct statement.(a) The query to retrieve the parent of a node is fast and straightforward(b) The query to retrieve the parent of a node is slow and straightforward(c) The query to retrieve the parent of a node is slow and complex(d) All of the mentionedThe question was posed to me during an interview.I'd like to ask this question from Model Tree Structures topic in section Data Models of MongoDB

Answer» RIGHT option is (a) The query to RETRIEVE the parent of a node is fast and straightforward

The best I can explain: You can CREATE an INDEX on the field to enable fast SEARCH by the parent node.


Discussion

No Comment Found

Related InterviewSolutions