I'm doing a simple forum mongodb DB, with categories,topics,posts and users.
My question is :
How should i do the references between categories
,topics
and posts
to be as faster and lighter as posible, with the _id
or nesting objects
like this?
categories{category:'categoryname',
topics:{topic:'topic',
posts:{post:'post',
user:'_idfromusers'
}
}
}
Suppose category has a very very big number of topics, and topics has a very very big number of posts.