Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
05/20/03 20:26
Read: times


 
#46166 - RE: New message flags
Responding to: ???'s previous message
Erik has been pushing me to fix this problem for years, literally. I know it needs to be fixed but I'm not entirely sure how to go about it.

The real issue is that the forum needs to remember the "last message read" in each thread. Right now it just remembers it globally which is why when you read a new message in one thread it can make the flags go away in all the other threads.

But to remember the last message read in each thread is an interesting problem in and of itself. There are literally thousands of users and there are thousands of threads. Keeping track of the last message read for every user for every thread would be costly in terms of having to look that information up each time a user opens a thread. It could be done, but I'm concerned it could slow the forum down. If we have only 1000 users and 6400 threads (the approximate current number), we're talking about 6.4 million potential registers in a database. I think that's going to be slow.

Another possibility is to store the information in cookies on the user browser, but then I'm limited as to how many threads can be stored since there is a limit to the size of cookies and the cookie file in general. Perhaps I could just store the "last message read" number for the 50 most-recently read threads and store it in a user cookie?

Again, ideas are welcome. Erik mentioned this problem years ago and I haven't solved it not because I'm avoiding the issue, I'm just not sure what the best way to address it is.

Regards,
Craig Steiner
8052.com Webmaster

List of 30 messages in thread
TopicAuthorDate
NEW FORUM FORMAT            01/01/70 00:00      
   RE: NEW FORUM FORMAT            01/01/70 00:00      
      RE: NEW FORUM FORMAT            01/01/70 00:00      
      RE: NEW FORUM FORMAT            01/01/70 00:00      
         RE: NEW FORUM FORMAT            01/01/70 00:00      
      RE: NEW FORUM FORMAT            01/01/70 00:00      
   RE: NEW FORUM FORMAT            01/01/70 00:00      
   RE: NEW FORUM FORMAT            01/01/70 00:00      
   RE: NEW FORUM FORMAT            01/01/70 00:00      
      RE: NEW FORUM FORMAT            01/01/70 00:00      
      RE: NEW FORUM FORMAT            01/01/70 00:00      
      RE: Bad Request            01/01/70 00:00      
         RE: Bad Request            01/01/70 00:00      
   good or bad            01/01/70 00:00      
      RE: good or bad            01/01/70 00:00      
   RE: NEW FORUM FORMAT            01/01/70 00:00      
   RE: NEW FORUM FORMAT            01/01/70 00:00      
      HTML tags?!            01/01/70 00:00      
         RE: HTML tags?!            01/01/70 00:00      
   RE: NEW FORUM FORMAT - IP address            01/01/70 00:00      
      RE: IP address            01/01/70 00:00      
         RE: IP address            01/01/70 00:00      
   RE: NEW FORUM FORMAT            01/01/70 00:00      
   RE: NEW FORUM FORMAT            01/01/70 00:00      
      RE: NEW FORUM FORMAT            01/01/70 00:00      
         RE: New message flags            01/01/70 00:00      
            RE: New message flags            01/01/70 00:00      
               RE: New message flags            01/01/70 00:00      
   RE: NEW FORUM FORMAT            01/01/70 00:00      
      RE: One more suggestion            01/01/70 00:00      

Back to Subject List