🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #38874

Pull deduping

#38874
From: Becky Kearns
Date: Thu, 29 Jul 1999 00:00
55 lines
3267 bytes
Hi all,

Lets say that I want to be able to pull down multiple newsgroups 
from the same server via ARTICLE, and I'd like to minimize the
downloading of duplicates so as to conserve net bandwidth.
As I see it I would need to create a history database based on 
group/article number or message-id.

If I went with group/article number I could extract that from XRef 
header in downloaded articles and when downloading:

    A) Generate a wanted list based on range returned by GROUP or
    B) Weed out the unwanted entries in LISTGROUP output

    then Article <number> for each

If I went with message-id I could extract that from downloaded articles
and when downloading:

    C) XOVER first, then gen list of wanted message-id's or
    D) XHDR first, then gen list of wanted message-id's

    then Article <message-id> for each

It seems A is the least common denominator but frankly I like
D and B better.  I expect that if we're talking about a mainstream
ISP or corporate server all options would likely be available, but
I'm not sure.  I'm in the early stages of everything and I need 
some advice.  What would you recommend?

If it helps any...

-  This is a read-only application for post processing only.  There 
    would be no [re]injection related issues.
-  If I ever was to add multiple server support I would actually
    *want* to download the same article from both servers.  Sounds
    odd but there is a reason for this.  So if I went with Message-ID
    I'd probably have to add the server name to the hash or something.
-  Generally speaking, few newsgroups would be downloaded at a
    time.  Perhaps a typical maximum of 7.  However, where multiple
    newsgroups would be downloaded, duplicates would almost surely
    be present.  You might think of it as pick a group, then download 
    that group and any other groups to which there were crossposts
    (not recursive).
-   I haven't figured out the local storage and expiration architectures
    yet, but I'm leaning towards one index and one data file per group.
    Possibly with a reduping of articles so they show up in all the
    appropriate group files and the group files can be "stand alone".
    Maybe expire the history file entries first, then run through all the
    index/data files and remove any articles which aren't present in
    the history.  Not particularly elegant but stand alone group cata
    files would be convenient post-processing wise.


Technical Details
Message-ID: <7npv2q$bsp$1@autumn.news.rcn.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.mbox.zip!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <7npv2q$bsp$1@autumn.news.rcn.net>
Subject: Pull deduping
Date: Thu, 29 Jul 1999 00:00:00 +0000
From: "Becky Kearns" <BeckyKearns@hotmail.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: 506636836
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="iso-8859-1"
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
X-Complaints-To: abuse@rcn.com
X-Trace: FqH4/2qef5cTYgBeHEGm6jPnqY+fito2mDXQns4yQYA=
X-MSMail-Priority: Normal
Mime-Version: 1.0
NNTP-Posting-Date: 29 Jul 1999 16:21:46 GMT
Newsgroups: news.software.nntp