🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #26559

Re: Support for ARTICLE <message-ID> (Was: Support for NEWNEWS)

#26559
From: Charlie Raggamuffin
Date: Fri, 27 Feb 1998 00:00
76 lines
4004 bytes
On Thu, 26 Feb 1998, Simon Slavin wrote:

> > 	ARTICLE <message-id>
> > requests, which is not an insignificant drain on resources in the
> 
> Should I understand from this that requests in this form are
> resource-intensive ?

They can be.  You need to do a mapping from the <message-id> to the actual
article.  That's done by the history file and database.

The problem as noted with NEWNEWS is that in order to find all the desired
articles, you have to search linearly through the history text file after
finding the desired spot, in the traditional way of implementing it. 
However, the history file is also made available in an alternate, hashed
format, which is far more efficient for searching than the text file,
which is usually several hundred megabytes to more than a gigabyte in
size, and which is used for lookups of the IDs of messages.


>  That I should try to read articles using
> their numbers rather than their message-id ?  This would
> suggest that nowhere within INN is a simple lookup table which,
> when presented with a message-id, can tell where the article is
> stored.

That's your history.pag database, used to point to locations of the
history text file, which itself contains the location of the article.

In the traditional spool storage, the groupname/article-number combination
is a direct pointer to the actual article, and it's trivial to retrieve.
Using the message-id means a search through the .pag database at a
particular point, then possibly several searches in the history text file,
which the news feeder does a lot, but a separate reader process ends up
duplicating resources inefficiently when doing this.


>  Does this not mean that if an article is cross-posted
> to five groups, five copies of it are stored ?  Seems silly.

In effect, yes.  Either one copy, and four links to that copy, or one
copy, and then pointers to that copy from a database, when not using the
traditional spool.


> This effectively means that any newsclient software must store
> the article numbering in at least one group with the article, so
> that it knows a 'polite' way to ask for it.

It really isn't too bad, with a properly configured reader machine, but
traditionally, you learn both the message-id along with the article number
for a particular group, and so can refer to it either way.

Or something like that....

Barry Bouwsma, Tele Danmark Internet newsmangler



``hence, software should not be given this important role.

software is a bunch of lines of code some punch-drunk lunatic coded
during the last paroxysms of a dangerous caffeine frenzy.  this is a
slightly-censored example.  in the real-world example, the programmer
might even be on cocaine, snorting it up while watching porn videos on
another monitor, and occasionally tapping in a couple lines of code
between the lines of coke to write the [...] software.

do you REALLY trust that guy who wrote the software?  i mean REALLY
trust that guy?  do you trust him with your kids?''

                                 -- Rob Clark


Technical Details
Message-ID: <Pine.LNX.3.96.980227011735.11387T-100000@coredump.int.tele.dk>
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: <34E483C1.2EE1@mci.net> <6ci8e8$pp2$1@shell13.ba.best.com> <6ck4n5$34bs$1@newssvr04-int.news.prodigy.com> <6cqdff$l5a$2@nntp.epix.net> <B11BA15896689062E@0.0.0.0>

Show Full Headers
Complete Article Headers
Message-ID: <Pine.LNX.3.96.980227011735.11387T-100000@coredump.int.tele.dk>
Subject: Re: Support for ARTICLE <message-ID> (Was: Support for NEWNEWS)
Date: Fri, 27 Feb 1998 00:00:00 +0000
From: Charlie Raggamuffin <f00fc7c8@vszbr.cz>
References: <34E483C1.2EE1@mci.net> <6ci8e8$pp2$1@shell13.ba.best.com> <6ck4n5$34bs$1@newssvr04-int.news.prodigy.com> <6cqdff$l5a$2@nntp.epix.net> <B11BA15896689062E@0.0.0.0>
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: 329051859
Mime-Version: 1.0
Reply-To: Barry Bouwsma <ag786@yfn.ysu.edu>
X-Sender: f00fc7c8@coredump.int.tele.dk
Content-Type: TEXT/PLAIN; charset=US-ASCII
Organization: Oh, get over it already
Newsgroups: news.software.nntp