🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #150544

Re: Download headers within a date range

#150544
From: Jake
Date: Wed, 23 Jun 2004 14:17
19 lines
2065 bytes
Murray Peterson <mwp@home.com.invalid> wrote in message news:
> 
> A simple binary search will fail, since the message numbers are somewhat 
> sparse (ordered, but not necessarily contiguous).  It's still possible to 
> speed up the search, but in all but the larger groups, it would 
> (probably) be simpler and faster to download all the headers, and then 
> discard the ones not wanted.

You are right about the sparsity of the message numbers.  A workaround
is to use the STAT and LAST/NEXT nntp commands.  If I want to find the
message number half way between 1 and 10, I'd STAT for message 5, and
if the STAT fails, I do a LAST to find the previous message number.

I am dealing with groups with more than a million messages so it would
not be faster to download all headers.

An assumption I made was that messages are ordered by date.  So
message number 10 should have an earlier date than message number 11. 
I don't know if this is true.
Technical Details
Message-ID: <b5178b80.0406230617.31d5ec93@posting.google.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!internal1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news.glorb.com!postnews2.google.com!not-for-mail
References: <b5178b80.0406221912.5a02c93f@posting.google.com> <Xns9510DD9025CA0farkle@24.71.223.159>

Show Full Headers
Complete Article Headers
Message-ID: <b5178b80.0406230617.31d5ec93@posting.google.com>
Subject: Re: Download headers within a date range
Date: Wed, 23 Jun 2004 14:17:54 +0000
From: jakelundy@hotmail.com (Jake)
References: <b5178b80.0406221912.5a02c93f@posting.google.com> <Xns9510DD9025CA0farkle@24.71.223.159>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!internal1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news.glorb.com!postnews2.google.com!not-for-mail
Newsgroups: news.software.readers
Organization: http://groups.google.com
Lines: 19
NNTP-Posting-Host: 216.75.191.65
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1088000285 1106 127.0.0.1 (23 Jun 2004 14:18:05
 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Wed, 23 Jun 2004 14:18:05 +0000 (UTC)