I am in the midst of developing an app relying on MongoDB as its database.
In my specific case, I am doing a one to many (approximately 200) schema design. A good example for what I am doing would be if I had two Collections: Class and Students. (I do need both collections as I will be searching the Students from many different Classes). But, when I go to look at a Class, it should bring up all of its Students and list them out by name, gpa, home address, etc...
So now my question: Is this an issue that points towards denormalization or $lookup. Is it better to store the Student _id, name, gpa, etc all denormalized in the Class collection? Or am I better off simply storing the Student _id's and then using $lookup to get the corresponding information from each of the Students?
Thanks in advance!
Edit
I disagree that this is a duplicate of the linked question. Nowhere in the answers or the question is the topic of $lookup discussed.