🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #85777

Re: Starting: New NNTP server development

#85777
From: Russ Allbery
Date: Wed, 10 Jul 2013 18:46
33 lines
2847 bytes
Steve Crook <steve@mixmin.net> writes:

> I migrated my overview from buffindexed to tradindexed after
> experiencing one such issue. Despite buffindexed being much more
> efficient, tradindexed offers more expedient rebuild methods.

Yeah, that's exactly what I was aiming for when I rewrote it.  I was a lot
more worried about data loss than speed, so it tries to be fairly
conservative and have good data recovery tools.

That said, tradindexed was not written with any comprehensive analysis of
appropriate data structures and with very little performance tuning, and I
have absolutely no doubt that one could do much better using more modern
techniques.

> Until recently Dejanews and subsequently Google maintained a searchable
> archive of Usenet but that appears to be dying off.  As a result, longer
> retention on servers is more desirable.  I'd personally like to see
> better tools for maintaining fast buffer-type history/overview DBs so
> longer retention is less painful.

If you ever have to rebuild the databases from the source articles, it's
going to take forever.  I don't think there's any way around that.  I
would try instead to make the databases more robust against corruption,
either with more hardened code and more sanity checking or with some sort
of backup/journalling approach where you can fall back to a known-good
database and then replay the subsequent data.  Or possibly both.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID: <87d2qql0c6.fsf@windlord.stanford.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.dca3.giganews.com!border2.nntp.dca3.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsfeed.news.ucla.edu!usenet.stanford.edu!usenet-its.stanford.edu!.POSTED!not-for-mail
References: <krj2c7$mao$1@speranza.aioe.org> <slrnktqjlr.a2.steve@snorky.mixmin.net>

Show Full Headers
Complete Article Headers
Message-ID: <87d2qql0c6.fsf@windlord.stanford.edu>
Subject: Re: Starting: New NNTP server development
Date: Wed, 10 Jul 2013 11:46:33 -0700
From: Russ Allbery <rra@stanford.edu>
References: <krj2c7$mao$1@speranza.aioe.org> <slrnktqjlr.a2.steve@snorky.mixmin.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.dca3.giganews.com!border2.nntp.dca3.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsfeed.news.ucla.edu!usenet.stanford.edu!usenet-its.stanford.edu!.POSTED!not-for-mail
Newsgroups: alt.comp.jgaa,news.software.nntp
Organization: The Eyrie
Lines: 33
NNTP-Posting-Host: windlord.stanford.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: usenet-its.stanford.edu 1373481994 23297 171.67.225.134 (10 Jul 2013
X-Complaints-To: news@usenet-its.stanford.edu
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux)
Cancel-Lock: sha1:SHv1pvIVaztqxUe1x/2f0Qx7GME=
X-Original-Bytes: 2656