1.

The Array of Ancestors pattern is slightly slower than the ________________ pattern.(a) Materialized Paths(b) Array of Ancestors(c) Nested Sets(d) None of the mentionedThis question was posed to me in quiz.My doubt stems from Model Tree Structures in portion Data Models of MongoDB

Answer»

The CORRECT answer is (a) Materialized Paths

For explanation I would say: The Array of Ancestors pattern provides a FAST and efficient solution to find the DESCENDANTS and the ancestors of a node by CREATING an index on the elements of the ancestors field.



Discussion

No Comment Found

Related InterviewSolutions