我是 MongoDB 新手,我只是想创建一个简单的项目来测试 MongoDB 的性能 该项目就像一个简单的 CMS,它有用户、博客和评论,用户可以有朋友
所以我这样设计我的数据库
user
{
_ID:
name:
birth_day:
sex:
friends:[id_1,Id_2]
}
blogs
{
title:
owner:
tags_fiends:
comments:
[
{"_id":"","content":"","date_created":""},
{"_id":"","content":"","date_created":""},
],
"like"={"_id","_id"}
}
以及该数据库需要多少个集合。我可以为用户和博客使用 1 个集合吗?在此先感谢。