I am going to implement a list of topics / arguments on my forum, and I would like to add a read / not read flag for each post for each user on each site.
I think with such things: a table watched_topicswith id(INT), user(VARCHAR)and topic_id(INT). When a userbrowses the page, I insert (if the data does not exist) this data.
When another userwill insert a new message into the topic, I will delete the watched_topicsentire row with this from the table topic_id.
This can cause problems: think about 9000 topics and 9000 users who viewed all topics: the table will be so large ( 9000x9000 = 81000000 ).
So, I believe that this is not the best strategy for implementing this kind of thing! Any suggestion would be appreciated :)
Greetings
source
share