Answer the question
In order to leave comments, you need to log in
Subscribing to a large number of meteor documents?
Good afternoon! Please tell us how to subscribe to a large number of documents at once?
We have an admin panel that displays a list of users (100 per page). Each user has posts (let's say 15 posts), and each post has comments (let's say 50 comments).
Now we are subscribing to users (100 documents), subscribing to the posts of all users shown on the page (100 + 100 * 15 = 1600 documents) and subscribing to comments for each post (1600 + 1500 * 50 = 76600 documents). For one page, this is just a wild number.
And if you consider that users constantly create posts / comments, then the number of requests is constantly kept at a high level. This is very heavy on the database. How can this problem be overcome? Only through denormalization?
PS: you just need to display a table:
ID | Email | Number of posts | Total number of comments
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question