search

Home  >  Q&A  >  body text

MongoDb建立一个关注类系统设计

collections:

post 用户发布的文章表
follow 关注关系
user 用户

怎么设计列出关注的人发布的文章,听说 in是不支持索引。

巴扎黑巴扎黑2826 days ago625

reply all(1)I'll reply

  • 伊谢尔伦

    伊谢尔伦2017-04-28 09:08:17

    First find all the people you are following, and then check their articles. MongoDb does not support cross-table joint queries, so programs need to be implemented.

    reply
    0
  • Cancelreply