Re: troll performance questions
Jan Schneider <[email protected]> Fri, 10 Jan 2003 17:43:36 +0100
| Newsgroups | gmane.comp.horde.troll |
|---|---|
| Message-ID | <[email protected]> |
Zitat von Eric Rostetter <[email protected]>: > > That sounds like a very good idea. It won't help in my case as I am the > only > > user on my server, but ... ;-) > > Actually, it *would* help you if you logout/login between troll sessions. > Once you get the list, it is cached until you logout, which is way cool. > But if you read news in the morning, logout at lunch, login after lunch > to read news again, you will hit the performance issue twice. Caching > would eliminate this so you only hit the performance issue once per > cache period. Oh yes, you're right. Didn't thought of that. > I'd say caching for one day, with a cron job to hit the server in the > middle > of the night to refresh the cache, would be sufficient (do we really care > if > new groups don't show up until the day after creation? I don't. Even > though > I can see where this might be inconvenient for "university course" > newsgroups, > I simply say, like everything else, the professors should plan ahead and > not > wait until the last moment. But now I'm rambling... I agree that one day would be enough, but it still can be configuration option. Or the admin can start the update process from a cron job more often. > > Is there any functionality inside the c-client to support such a task? > Does > > anybody know how other news clients handle this? > > No idea. But it would be trivial. Worse case would be read in the > user's > list (.newsrc, etc) to an array, do an nntp "list" command into an array, > and find the differences between the arrays (for deletes and additions). > With the fantastic array functions/handling in php, this should be extra > trivial. That's indeed trivial, but it wasn't what I was talking about. We would still need to retrieve the whole list from the server, comparing it to the user's list. What other clients do is getting anyhow an update list from the server that only contains new (and probably deleted) groups. Jan. -- http://www.horde.org - The Horde Project http://www.ammma.de - discover your knowledge http://www.tip4all.de - Deine private Tippgemeinschaft -- Troll mailing list Frequently Asked Questions: http://horde.org/faq/ To unsubscribe, mail: [email protected]