Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: A feature for Personal Nodelet

by davis (Vicar)
on Mar 14, 2003 at 09:54 UTC ( [id://242989]=note: print w/replies, xml ) Need Help??


in reply to A feature for Personal Nodelet

That would mean storing the "most recently viewed state" (couldn't think of a good name) of all the threads in the personal nodelet, and comparing each of those threads' state to the current state in order to tell if anything had changed. It would also require tracking which users had looked at which nodes (though I suppose this could be similar to the method used to tell who's voted on a particular node).

In short, it sounds like it would be a nightmare to code


davis
Is this going out live?
No, Homer, very few cartoons are broadcast live - it's a terrible strain on the animator's wrist

Replies are listed 'Best First'.
Re: Re: A feature for Personal Nodelet
by zby (Vicar) on Mar 14, 2003 at 10:05 UTC
    Yeah - I know that, I'm a programmer too :-)

      It'd be a minor nightmare to code. It would be a major nightmare either on server load to do all of the checking required each time the nodelet is displayed or a major nightmare in resources to be able to update all of the personal nodelets whenever a new node is posted.

      In other words, it will never happen.

      If one wants to track a list of threads for new replies, then the only scalable solution is for each user to keep their own list of threads-to-be-tracked and record the last time they checked. Then each user can infrequently fetch the list of new replies (since the last time they checked) and compare these replies' root node IDs against their list of threads (and update when they 'last checked').

      If one wants to track other than just by root nodes, then the amount of complexity to do that efficiently goes up a great deal.

      There might eventually be something similar to this done inside of the Monastery using a cron job. But it certainly won't end up in a nodelet (barring tons of work in caching).

      And if one wants such a feature, the fastest way to get it is to implement it outside of the Monastery using existing Monastery features.

                      - tye
        How about including the last modification date in the link and letting the browser do the rest? And if it is still too heavy for a nodelet than make it a separate node. This way what is left is only updating the thread last modification date at each write - but writes can be a bit expensive since they are not that frequent.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://242989]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (7)
As of 2024-04-24 10:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found