Article View: news.software.nntp
Article #72717Re: Odd article numbering.
From: J. Carlos Castro
Date: Wed, 23 Nov 2005 21:08
Date: Wed, 23 Nov 2005 21:08
52 lines
3318 bytes
3318 bytes
Russ Allbery wrote: >>>No, it's a permissible (if stupid) implementation. You can't >>>guarantee there will be no holes regardless, due to cancels, so this >>>is just an extreme case of something that news reading software has to >>>handle anyway. Bill Davidson replied later in the thread: > If there's a good way to do this, I don't have it. I have a program to > gram the last N items in overview, and it it wants 100 (for example) and > asks for the last 100 numbers and gets 80 data, it then "backs up" by the > shortfall, 20, and asks again. > > Possible extention to the NNTP protocol: a syntax to specify the last N > items in overview, regardless of article number. It's much faster to do > this at the server end. How about a reverse XOVER command, say ROVER that takes two args. The first argument indicates the first xover record to return, and the second argument indicates how many xovers to return counting down from the first. If the first argument is a "0" then the latest article in the group is assumed. "ROVER 0 125" means I want the latest 125 overview records for the group listed in reverse number order "ROVER 1000 75" means I want the 75 newest overview records numbered below 1001 listed in reverse number order. A scalable implementation of this might be a little tricky based on how overview records are stored on the server. On servers where overviews for a group are stored together in order, reading forward makes the most sense wrt disk caching. You read() the first record, and at the same time you move the next few records occupying that page into system memory, so the next few read()s will avoid smacking the disk. for ROVER to work on a server in which overview records for a group are stored in order on server disk, it would make sense to do a page read starting at location_of_first_record + size_of_first_record - page_size so you can read as many records into system cache as possible. Then again, this is only useful in nntp clients actually implement it. --- Carlos
Technical Details
Message-ID:
<DS4hf.44948$4n5.14773@dukeread01>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!peer01.cox.net!cox.net!p01!dukeread01.POSTED!53ab2750!not-for-mailReferences:
<Xns9709AD2DF283Apeonsomecompanycomin@127.0.0.1> <87y83xqxzv.fsf@windlord.stanford.edu> <Xns9709B0728110Bpeonsomecompanycomin@127.0.0.1> <8GNcf.10338$Lv.6870@newssvr24.news.prodigy.net>Show Full Headers
Complete Article Headers
Message-ID: <DS4hf.44948$4n5.14773@dukeread01> Subject: Re: Odd article numbering. Date: Wed, 23 Nov 2005 16:08:08 -0500 From: "J. Carlos Castro" <news-software-nntp@jcas.com> References: <Xns9709AD2DF283Apeonsomecompanycomin@127.0.0.1> <87y83xqxzv.fsf@windlord.stanford.edu> <Xns9709B0728110Bpeonsomecompanycomin@127.0.0.1> <8GNcf.10338$Lv.6870@newssvr24.news.prodigy.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!peer01.cox.net!cox.net!p01!dukeread01.POSTED!53ab2750!not-for-mail Newsgroups: news.software.nntp Lines: 52 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Response NNTP-Posting-Host: 24.248.74.254 X-Complaints-To: abuse@cox.net X-Trace: dukeread01 1132780067 24.248.74.254 (Wed, 23 Nov 2005 16:07:47 EST) NNTP-Posting-Date: Wed, 23 Nov 2005 16:07:47 EST Organization: Cox Communications