I don't know if this is even possible, but I'm curious.
What I want to do is basically cross-document flattening(merging).
Say I have 5 documents
(DOC 1)
_jd : 1
name: people
members: [2,3]
(DOC 2)
_id: 2
name: John Doe
age: 25
comments: [4]
(DOC 3)
_id: 3
name: Jane Doe
age: 23
comments: [5]
(DOC 4)
_id : 4
content: "I love you Jane"
(DOC 5)
_id: 5
content: "I love you, too, John"
reply_to: 4
Say I want to, as quickly as possible, retrieve the content of all 5. (The entire content of the conversation between everyone in the db) What would be the best practice?
For example, is there a way to, in one shot, ask for all 5 documents given that there are links embedded?
slim