Count number comments in post in Meteor
问题 If I want to count the number of comments a post has got, I will have to save the number of comments every time a new comment is either created or removed. What is the most efficient and secure way to ensure the posts are updated with the number of comments every time a comment is either created or removed? I have tried Curser.observe() but it seems it causes some problems sometimes. I have looked through my code and it should be OK but sometimes some changes happend when they shouldn't so I