Article View: news.software.nntp
Article #39078Re: NNTP protocol question
From: Andrew Gierth
Date: Wed, 11 Aug 1999 00:00
Date: Wed, 11 Aug 1999 00:00
32 lines
2288 bytes
2288 bytes
>>>>> "Douglas" == Douglas Cook <cookd@cs.byu.edu> writes: Douglas> I am developing a specialized NNTP client. When it logs Douglas> onto a news server, it needs to know the message ID's of the Douglas> articles in a particular group. The easiest way for me to Douglas> do this is to use the XHDR command to fetch all the Message-ID headers. Douglas> to execute a "NEWNEWS [group] 700101 000000", which returns Douglas> a listing of the message ID's of all articles in group since Douglas> 1970, or in other words, all of them. However, I realize Douglas> that this isn't a good way to do it, since it uses up a lot Douglas> of the server's processing power (it has to retrieve each Douglas> article and parse the article's date field to verify that it Douglas> was posted after 1970). Actually, what INN would do in such a case would be to scan the whole history file (which may be a gigabyte or so in size) looking for articles in the date range (which will be every article on the server) and then figure out which of those articles are in the correct group (by fetching the article, _sheesh_) i.e. the problem is many orders of magnitude worse than you think. Most other implementations of NEWNEWS are equally poorly implemented. A more efficient way of doing it has been discussed here in the past, but no-one seems to have taken much notice. -- Andrew.
Technical Details
Message-ID:
<87g11qd59l.fsf@erlenstar.demon.co.uk>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-mailReferences:
<7oqj34$j662@bbs2.pnl.gov>Show Full Headers
Complete Article Headers
Message-ID: <87g11qd59l.fsf@erlenstar.demon.co.uk> Subject: Re: NNTP protocol question Date: Wed, 11 Aug 1999 00:00:00 +0000 From: Andrew Gierth <andrew@erlenstar.demon.co.uk> References: <7oqj34$j662@bbs2.pnl.gov> 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: 511397449 X-Mayan-Date: Long count = 12.19.6.7.17; tzolkin = 9 Caban; haab = 5 Yaxkin X-Complaints-To: andrew@erlenstar.demon.co.uk Organization: disorganised X-Attribution: AG X-Pgp-0x0E9FFBE9: 87 25 7F 14 41 24 B3 51 E0 19 8B DE 49 74 0C 29 X-P-Persistent-Headers: are a bad idea. Newsgroups: news.software.nntp,news.software.readers X-Post-Filter: postfilter v0.6 alpha