🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #71942

Re: ARTICLE msg-id

#71942
From: YottaNews Support
Date: Wed, 22 Jun 2005 17:20
33 lines
2752 bytes
On Wed, 22 Jun 2005 16:32:55 +0200, Dr.Ruud wrote:

> Nonsense. It is 'two keys', not 'two databases'. The Article-number
> doesn't even need to be stored, it can be derived from an array-index.
> The array can be filled with pointers to (or offsets of) Message-IDs, or
> with hashes of Message-IDs.

Two keys is the same thing as two databases.  You have to keep
two hash/btree/what_ever tables:

message-id -> [article location data] 
group:number -> [article location data]

or you could do (diablo style):
message-id -> [article location data] 
group:number -> [message-id]

or you could do (broken highwind style): 
message-id -> [group:number]
group:number -> [article location data]

In either case, you maintain two databases and do two lookups in the worse
case.  You end up with a trade off of either fast message-id requests or
fast group:number requests.  One will require one step the other two
steps.  No matter how you do it, one method will always be slower.  If the
protocol only allowed message-id requests you would only need one
database/hash table/index/whatever_you_call_it...

-- 
Steve
News Administrator
YottaNews.com/NNTPServer.com
Technical Details
Message-ID: <1119460424.0d3f8af646c6d51b17f727d7f5329bf4@yottanews>
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!nntp.giganews.com!newsfeed-east.nntpserver.com!nntpserver.com!newsfeed-west.nntpserver.com!roc.nntpserver.com.POSTED!yottanews!not-for-mail
References: <42b7a20f@news.stben.net> <slrndbfdci.192v.andrew+nonews@trinity.supernews.net> <UUYte.98970$eh1.73850@fe07.news.easynews.com> <slrndbgs0k.192v.andrew+nonews@trinity.supernews.net> <1119400354.b56e3a757ccc5f190b8def3047ba052b@yottanews> <slrndbhg70.192v.andrew+nonews@trinity.supernews.net> <1119411405.8e82f1e6a60aa1843dd5620493aca139@yottanews> <d9c4l6.1bs.1@news.isolution.nl>

Show Full Headers
Complete Article Headers
Message-ID: <1119460424.0d3f8af646c6d51b17f727d7f5329bf4@yottanews>
Subject: Re: ARTICLE msg-id
Date: Wed, 22 Jun 2005 12:20:29 -0500
From: YottaNews Support <spamtrap@yottanews.com>
References: <42b7a20f@news.stben.net> <slrndbfdci.192v.andrew+nonews@trinity.supernews.net> <UUYte.98970$eh1.73850@fe07.news.easynews.com> <slrndbgs0k.192v.andrew+nonews@trinity.supernews.net> <1119400354.b56e3a757ccc5f190b8def3047ba052b@yottanews> <slrndbhg70.192v.andrew+nonews@trinity.supernews.net> <1119411405.8e82f1e6a60aa1843dd5620493aca139@yottanews> <d9c4l6.1bs.1@news.isolution.nl>
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!nntp.giganews.com!newsfeed-east.nntpserver.com!nntpserver.com!newsfeed-west.nntpserver.com!roc.nntpserver.com.POSTED!yottanews!not-for-mail
Newsgroups: news.software.nntp
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit
Lines: 33
NNTP-Posting-Date: Wed, 22 Jun 2005 12:13:44 EST
X-Abuse-Report: http://www.usenetabuse.com
X-Abuse-Notes: Abuse reports must be submited via the usenetabuse.com portal
 listed above.
X-Abuse-Notes2: Reports sent via any other method will not be processed.
X-Abuse-Notes3: Any other abuse reporting headers in this article are
 fraudulent.
X-Orginal-Message-ID: <c%gue.3033$ZC6.482@roc.nntpserver.com>