🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #30173

Speeding up INN's GROUP command (was: Re: Getting slrn to use LIST ACTIVE instead of GROUP?)

#30173
From: Jeremy
Date: Wed, 29 Jul 1998 00:00
50 lines
3635 bytes
I'm crossposting this to news.software.nntp, as it's departed from
the realm of client software. :)  Followups directed there...

For those just joining us, I was trying, unsuccessfully, to find a
way to speed up INN's GROUP command, which scans the entire directory
and thus can take an eternity in a very large group.  At Supernews
we have groups with tens of thousands of articles present, creating
a long wait for users of newsreaders that use a series of GROUP
commands to create a list of newsgroups with article counts.

Curt Welch <curt@kcwc.com> wrote:
> jeremy@exit109.com (Jeremy) wrote:
>
>> Hmm.  I wonder if a quick and dirty fix would be to make GROUP get
>> its numbers from active?  Or would that break something...?  Hmm,
>> something to ask our programmer about...
> 
> I'm pretty sure that the old inn nnrpd will do that and remember the
> list of valid articles.  Then, when you do an XOVER, it matches that
> list against the XOVER data and removes the XOVER records (from the
> response) for missing articles.  I'd guess that it also uses that list
> for stepping though the articles with NEXT and LAST etc.  So if you
> don't read the directory and build that list, you will either have to
> do it later, or you will just loose the accuracy of knowing which
> articles are really there and which aren't.

Yeah, that's what it'll break, I didn't think of that.

On the other hand ... if you don't process cancels, there won't *be* any
missing articles, right? :)

> This is the problem that INN 2.0 created and it means the newsreaders
> will show the user headers for articles that have been cancled.  And
> then returns errors when the user tries to read them.  A real step
> backwards in functionality.
> 
> What you might want to do is hack in a change to GROUP that will limit
> the number of article names it will read from the directory to something
> like 1,000.  When it hits the limit, it just gives up and returns the
> active file info for the GROUP command.  But remember the fact that
> the article list isn't yet valid so you can go back and do it compleletly
> when (and if) it's needed.  This gives you fast GROUP commands for
> clients that do a series of GROUP commands on start up, but retains
> the accuracy of the info GROUP returns for small groups.

-- 
Jeremy  |  jeremy@exit109.com
"Everything you think you know is wrong."  --Jack Chalker

Technical Details
Message-ID: <6pmhd0$ggr$1@news1.exit109.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <slrn6r3vn3.7tk.gjohnson@dream.season.com> <slrn6ri2kp.8pi.syl@elvira.rodents.montreal.qc.ca> <6pdgab$494$1@supernews.com> <slrn6rmfnv.m1r.syl@elvira.rodents.montreal.qc.ca> <6pkd3q$kv5$1@supernews.com> <6pl6ml$9p3$1@news1.exit109.com> <m3lnpdsg79.fsf@windlord.Stanford.EDU> <6pm0fi$3a7$1@news1.exit109.com> <m3af5tpevc.fsf@windlord.Stanford.EDU> <6pm2tv$4q0$3@news1.exit109.com> <19980729011813.699$AS@newsreader.com>

Show Full Headers
Complete Article Headers
Message-ID: <6pmhd0$ggr$1@news1.exit109.com>
Subject: Speeding up INN's GROUP command (was: Re: Getting slrn to use LIST ACTIVE instead of GROUP?)
Date: Wed, 29 Jul 1998 00:00:00 +0000
From: jeremy@exit109.com (Jeremy)
References: <slrn6r3vn3.7tk.gjohnson@dream.season.com> <slrn6ri2kp.8pi.syl@elvira.rodents.montreal.qc.ca> <6pdgab$494$1@supernews.com> <slrn6rmfnv.m1r.syl@elvira.rodents.montreal.qc.ca> <6pkd3q$kv5$1@supernews.com> <6pl6ml$9p3$1@news1.exit109.com> <m3lnpdsg79.fsf@windlord.Stanford.EDU> <6pm0fi$3a7$1@news1.exit109.com> <m3af5tpevc.fsf@windlord.Stanford.EDU> <6pm2tv$4q0$3@news1.exit109.com> <19980729011813.699$AS@newsreader.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 375915934
Followup-To: news.software.nntp
X-Trace: news1.exit109.com 901695712 16923 208.225.64.3 (29 Jul 1998 07:01:52 GMT)
Organization: There Is No Organization
NNTP-Posting-Date: 29 Jul 1998 07:01:52 GMT
Newsgroups: news.software.readers,news.software.nntp