Previous Thread
Next Thread
Print Thread
Hop To
#140448 04/16/2005 4:23 AM
Joined: Jun 2004
Posts: 23
V
stranger
stranger
V Offline
Joined: Jun 2004
Posts: 23
Hi,

With all the problems we are having with the 6.5.x.x post tracking , I would like to suggest at REAL post tracking solution.

It goes like this:

1. Make a new postread table in the DB.

2. Make a new "read daylimit" setting in config. That setting controls for how many days, countring from the posting date of a post, the system should track the reading of that post:

- a. All posts that are within the daylimit are tracked as read in the db when visited.
- b. All posts inside the daylimit that is not in the postread db, are unread.
- c. All posts outside the daylimit are read pr. definition. No DB needs to be invoked.


3. When calculating the number of unread posts, for example pr. topic level (and if enabled in the config), do the following:

- a. Select a sum count for all posts within the daylimit in post table
- b. Select a sum count for all read posts within the daylimit in new postread table
- c. calculate a - b.


4. When showing, for instance, a threaded postlist, select in the readpost table, all the threads read posts within the daylimit into an array, and compare post by post: is the post id in the array?. Apply the logic of 2.a - c, as shown above, to determine how to render the post: Read or Unread.

5. When reading a post (threaded) or a group of posts (flat), put the one(s) within the daylimit into the postread table.

6. Some sort of pruning of read posts in the postread table outside the daylimit should be worked in.

All of the above, point 2-5, is of course pr. user.

This WILL work. Regardless of cookies, sessions, how many browsers you have open and so on. Yes, it will put a toll on the DB, but I would rather have a strain on my servers than on my users because they cant find out what they have read and what they havent read. One can always reduce the daylimit setting to put some of the load of the DB.

Best of all: The users can understand this principle. If you tell them that they have about, say 5 days, to catch new posts they will accept it because it makes sense to them. They'll just have to come visiting more often.

Tough! ;-)

#140449 04/16/2005 12:29 PM
Joined: Jan 2004
Posts: 56
P
journeyman
journeyman
P Offline
Joined: Jan 2004
Posts: 56
For performance reasons they removed post tracking from the Tables with 6.5... I doubt they will go backwards. They just need to fix the post tracking issues that exist with there implementation as far as I can see.

#140450 04/21/2005 5:33 PM
Joined: Dec 2003
Posts: 611
Former Developer
Former Developer
Joined: Dec 2003
Posts: 611
Any changes involving new post flagging will not involve going back to storing everything in the database. It is simply not an option we will consider.


Charles Capps
Former UBB.classic Maintainer
#140451 04/25/2005 6:00 AM
Joined: Jun 2004
Posts: 23
V
stranger
stranger
V Offline
Joined: Jun 2004
Posts: 23
Charles,

My only concern is to get a solution.

If Infopop has another solution to the problem in the works I appreciate why they won’t even consider this.

#140452 04/25/2005 6:09 AM
Joined: Jun 2004
Posts: 23
V
stranger
stranger
V Offline
Joined: Jun 2004
Posts: 23
Hmm. Interesting. I won’t pretend to know the working principles behind a non-database post tracking, but the circumstances indicate to me that the principle is not working. If this turns out to be a fact, the decision *not* to go back to a db post tracking solution seems rather unfortunate, since this in effect would be a decision to have a post tracking that does not work. <img src="https://www.ubbcentral.com/boards/images/graemlins/smirk.gif" alt="" />


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Is UBB.threads still going?
by Aaron101 - 04/01/2022 8:18 AM
Who's Online Now
1 members (Ruben), 1,248 guests, and 268 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)