🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #85773

Re: Starting: New NNTP server development

#85773
From: Richard Kettlewell
Date: Wed, 10 Jul 2013 10:54
27 lines
2691 bytes
Tony <tony@darkstorm.invalid> writes:
> On 2013-07-10, Jarle Aase <jgaa@jgaa.com> wrote:

>> - Database storage for meta-data and small text posts (MariaDB?)
>
> I think putting posts in a DB is a mistake, unless it's only optional.
> I specifically use a storage solution that allows me complete access to
> the posts from the shell.
>
> If you're aiming this at a very broad range of people (which it sounds
> like you are), then I suggest you allow people to store articles as
> plain text on the filesystem, so they can grep them at will.

If you’re starting from scratch you can do a lot better than running
grep on your spool.

First, you can maintain an index as the articles arrive.  Provided your
search fits the index’s capabilities, you’ll get near-instantaneous
results.

Secondly, the median article size in my spool is 2302 bytes, i.e only
slightly over 50% of a typical fs allocation unit.  When you’re reading
the lot, having one uncompressed file per article forces a lot more IO
than combining them into some more efficient representation.

-- 
http://www.greenend.org.uk/rjk/
Technical Details
Message-ID: <87r4f6it1e.fsf@araminta.anjou.terraraq.org.uk>
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!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!nntp-feed.chiark.greenend.org.uk!ewrotcd!nntp.anjou.terraraq.org.uk!.POSTED!not-for-mail
References: <krj2c7$mao$1@speranza.aioe.org> <krjc4o$viv$1@trinity.darkstorm.co.uk>

Show Full Headers
Complete Article Headers
Message-ID: <87r4f6it1e.fsf@araminta.anjou.terraraq.org.uk>
Subject: Re: Starting: New NNTP server development
Date: Wed, 10 Jul 2013 11:54:53 +0100
From: Richard Kettlewell <rjk@greenend.org.uk>
References: <krj2c7$mao$1@speranza.aioe.org> <krjc4o$viv$1@trinity.darkstorm.co.uk>
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!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!nntp-feed.chiark.greenend.org.uk!ewrotcd!nntp.anjou.terraraq.org.uk!.POSTED!not-for-mail
Newsgroups: alt.comp.jgaa,news.software.nntp
Organization: Anjou
Lines: 27
NNTP-Posting-Host: araminta6.anjou.terraraq.org.uk
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Trace: araminta.anjou.terraraq.org.uk 1373453695 4871 2001:470:1f09:11ed::12
X-Complaints-To: usenet@sfere.greenend.org.uk
NNTP-Posting-Date: Wed, 10 Jul 2013 10:54:55 +0000 (UTC)
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux)
X-Face: h[Hh-7npe<<b4/eW[]sat,I3O`t8A`(ej.H!F4\8|;
 ih)`7{@:A~/j1}gTt4e7-n*F?.Rl^
 F<\{jehn7.KrO{!7=:(@J~]<.[{>v9!1<qZY, {EJxg6?Er4Y7Ng2\Ft>Z&W?r\c.!4DXH5PWpga"ha
 +r0NzP?vnz:e/knOY)PI-
X-Boydie: NO
Cancel-Lock: sha1:M6VftJwpzmmn6rSkIsfZUzGfCCc=
X-Original-Bytes: 2443