🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #65545

Re: Which is faster: retrieve article by article number, or by Msg-ID?

#65545
From: Bas Ruiter
Date: Thu, 29 May 2003 00:24
45 lines
3132 bytes
> Fetching by Message-Id when dealing with multiple servers can save you from
> having to download a ton of headers, so there are reasons to use it.
> However, when you can just as easilly use article numbers, it wise to do
> that instead.

Yes, I was toying with that idea too - grab headers off one server and
use the Msg-ID on other servers too.

Problem is when the servers aren't synced - if the 2nd server is missing
a load of messages I'll get a lot of "no such article" responses back,
and tere may also be articles that ARE on the 2nd server but not on my
1st server. So I'd miss those articles altogether.

My concerns with doing XOVER for a group on each server is not the
download time, but the juggling I'll have to do in memory afterwards,
sorting the stuff, etc etc.

On the business of sorting - does anyone recommend a particular sort for
the Subject: headers? In the multimedia groups there will be a LOT of
articles and as you know, a lot of the Subject: lines will be largely
the same. i.e. it's going to go through a lot of sorting because of the
similarities!

A few months ago I did some research into this (OK, just spent a few
afternoons Googling) and from what I can tell Heapsort seems to be a
good candidate. It's fast, and has very modest memory requirements so it
will scale well.

Another thing I was thinking of is "pre-sorting" headers as they are
downloaded into different "pools" - an "A pool", "B pool", ... etc.
according to the first letter in their Subject: line.

Then each pool alone would need to be sorted, and the results can be
glued together again.

DS: did you write a special sorting routine / specialised database
thingy for your XOVER stuff?

--
 Bas Ruiter

 e-Mail: lordsnow@home.nl
 www:    http://members.home.nl/lordsnow
Technical Details
Message-ID: <akjadvcd5d5nin6dj2ltu1k73eg6qk1uom@4ax.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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeed.gamma.ru!Gamma.RU!skynet.be!skynet.be!213.51.129.3.MISMATCH!newshub1.home.nl!home.nl!not-for-mail
References: <npf9dvsun1hdqbplg77evm6hsmd9nusdrf@4ax.com> <3ed4c2ea$0$2598$a1866201@newsreader.visi.com> <jbj9dvkc97essifpac828cc8167c6se2hc@4ax.com> <20030528112007.074$Pl@newsreader.com> <mql9dvk0a9mmpvh4bjufshjrfh05c271k8@4ax.com> <20030528160241.048$tn@newsreader.com>

Show Full Headers
Complete Article Headers
Message-ID: <akjadvcd5d5nin6dj2ltu1k73eg6qk1uom@4ax.com>
Subject: Re: Which is faster: retrieve article by article number, or by Msg-ID?
Date: Thu, 29 May 2003 02:24:22 +0200
From: Bas Ruiter <lordsnow@home.nl>
References: <npf9dvsun1hdqbplg77evm6hsmd9nusdrf@4ax.com> <3ed4c2ea$0$2598$a1866201@newsreader.visi.com> <jbj9dvkc97essifpac828cc8167c6se2hc@4ax.com> <20030528112007.074$Pl@newsreader.com> <mql9dvk0a9mmpvh4bjufshjrfh05c271k8@4ax.com> <20030528160241.048$tn@newsreader.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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeed.gamma.ru!Gamma.RU!skynet.be!skynet.be!213.51.129.3.MISMATCH!newshub1.home.nl!home.nl!not-for-mail
Newsgroups: news.software.nntp
Organization: @Home Benelux
Lines: 44
NNTP-Posting-Host: cc7224-a.ensch1.ov.home.nl
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Trace: news4.tilbu1.nb.home.nl 1054167843 692 212.120.80.34 (29 May 2003 00:24:03 GMT)
X-Complaints-To: abuse@home.nl
NNTP-Posting-Date: Thu, 29 May 2003 00:24:03 +0000 (UTC)
X-Newsreader: Forte Agent 1.91/32.564