Tell people on the link exchange site that people can share links and post comments. Users following the link should be notified when comments are posted there. Users following a category should be notified that links are included in this category. What would be the best way to store these notifications?
I could store them separately, in which case their receipt would be simple, but each time a link is posted, I will need to add a notification for each of, say, 10,000 people following this category.
I could also just count the notifications every time, in which case I would count the number of new comments since the last user login and display this. However, I could not save the old notifications.
What are my options?
Ok, here is my database schema:
comments - id - user - link - content links - id - user - content subscriptions - id - user - link
Each time a new comment is created for a link, all users who subscribe to this link must have a โnotificationโ that they will receive the next time they log in.
user2058002
source share