search

Home  >  Q&A  >  body text

Mongodb database (newbie) problem

The requirement is:
When the number of comments on an article changes, the cNumber in the article also changes. Can this be achieved by designing a Schema? Articles and comments are two Schema

(Novice to mongodb, sorry for the inaccurate question)

怪我咯怪我咯2773 days ago724

reply all(1)I'll reply

  • 某草草

    某草草2017-05-17 10:06:09

    It’s a database design problem. Shouldn’t cNumber read the number of comments? It doesn’t need to be stored in the article.

    reply
    0
  • Cancelreply