I have a website where people can write and comment on them. I want to create a notification system for new comments, so when a user logs in, he can see the number of new comments to his posts.
My idea is to add a “read” table where I will store user_id and comment_id (means that user_id reads comment_id). But this can cause some performance problems as the table grows.
What is the best way to implement this?
user243901
source
share