0
这是我的表结构:DESGIN bloger系统数据库sechema
网站拥有众多用户
每个用户都有许多博客
每个博客有很多文章
每个文章有很多评论,
什么是最好的设计,它在mongoDB?
是真的吗?
{
user:[
{name:"john",
weblog : [
{ name: "new blog",
article : [
{
title: "this is first article",
comment :[
{text": comment },
{...comment...},
{...comment...}
]
}
{...article...},
{...article...}
]
}
{...weblog...},
{...weblog...},
{...weblog...}
],
},
{ ...user... },
{ ...user... },
{ ...user... }
]
}
是标准吗?
我认为它太嵌套了。是否需要搜索?