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)
走同样的路,发现不同的人生
It’s a database design problem. Shouldn’t cNumber read the number of comments? It doesn’t need to be stored in the article.
It’s a database design problem. Shouldn’t cNumber read the number of comments? It doesn’t need to be stored in the article.