🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #14879

Re: Redesign spool and history database

#14879
From: Scott Lystig Fritchie
Date: Sun, 09 Feb 1997 00:00
40 lines
2554 bytes
mibsoft@epix.net (Forrest J. Cavalier III) writes:
> Thread from 4/17/1996 (or there abouts) described a feeder only
> solution which stored articles under directories and files based
> on MD5 hash of the message ID.

FWIW, see http://www.mr.net/~fritchie/HASHHACK/.  I haven't done any
further development work on it, but I'm aware of one "Top 20" site
which has been using it for months.

> To summarize, I think my idea has one significant
> improvement: use an expiration table to map hash values
> to an expiration code, and then use the expiration code as
> the top-level directory.  

Expiration of all those separate files is still a pain, particularly
with filesystems that do that sort of thing synchronously.  But you
eliminate a lot of needless reading & rewriting of directory inode
info ... to the tune of a roughly 2-3x performance boost in my
off-the-cuff not-well-controlled testing.

To echo what I said a few weeks ago in the innfeed-users (?) mailing
list -- I've been holding off further refinement of my circular buffer
storage method until James Brister finishes the API.  What the code
I've grafted onto innd & friends is ugly, gross, perhaps unnatural,
but certainly difficult to maintain.  Thanks to Darrell Fuhriman for
moving it to 1.5, but I'd rather not put him (or anyone else) through
it again.  ... Imagine, having a commercial relational database for
backend article storage.  Or a Tandem.  Or an entire network of
Commodore VIC-20s with cassette tape drives and 16K RAM expansion
cartridges.  What a sight....

-Scott
---
Scott Lystig Fritchie, Network Engineer          MRNet Internet Services, Inc.
fritchie@mr.net, PGP key #152B8725               Minnesota Regional Network
v: 612/362.5820, p: 612/637.9547                 2829 University Ave SE
http://www.mr.net/~fritchie/                     Minneapolis, MN  55414

Technical Details
Message-ID: <ytlvi82tpy0.fsf@data.i-have-a-misconfigured-system-so-shoot-me>
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
References: <5dd8dn$ml7@news1.epix.net> <5dftb2$oti@news1.epix.net>

Show Full Headers
Complete Article Headers
Message-ID: <ytlvi82tpy0.fsf@data.i-have-a-misconfigured-system-so-shoot-me>
Subject: Re: Redesign spool and history database
Date: Sun, 09 Feb 1997 00:00:00 +0000
From: Scott Lystig Fritchie <fritchie@mr.net>
References: <5dd8dn$ml7@news1.epix.net> <5dftb2$oti@news1.epix.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
X-Deja-AN: 217551738
Distribution: inet
Sender: fritchie@data
Organization: Minnesota Regional Network
Newsgroups: news.software.nntp