🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: rocksolid.nodes.announce
Article #486

Re: rslight database maintenance automated

#486
From: SugarBug
Date: Wed, 04 Oct 2023 17:13
33 lines
2243 bytes
On Wed, 4 Oct 2023 14:18:33 +0000
retro.guy@rocksolidbbs.com (Retro Guy) wrote:

> I'm now running general database maintenance daily (with expire) for
> each group.
> 
> This has been something that would have been manually done
> previously, and not often. This should clean up group database files,
> defragment them, reduce disk usage and speed up requests.
> 
> Group article databases (sqlite) get fragmented and grow in size when
> articles are deleted (expired, nocem or whatever). Space is not
> recovered until maintenance is run, so we now do that daily. This
> also rebuilds the indexes which should make searching in the db
> (happens constantly) faster.

How much faster is rslight when using sqlite database rather than
tradspool? Is it more than 2x in your experience? A ballpark figure is
good enough.

I'm thinking maybe my public peer should use database and my hidden
mirror peers should use tradspool, since nobody will be accessing the
hidden ones via web or nntp. That way my gopher/sftp/ssh access of
article files remains intact.

Also it is much faster for me to queue up 'grep -r' statements than it
is to type in sqlite queries, as I like to grep through the spool data.

-- 
    __|__|__|__    3883@sugar.bug
    __|__|__|__    https://sybershock.com
    __|__|__|__    news://alt.sources.crypto
      |  |  |      #CipherTag #WaffleTag #Cryptologer
Technical Details
Message-ID: <d85f0a21e8221e0893a2e263af820dda$1@sybershock.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!apf9.newsdeef.eu!i2pn2.org!rocksolid2!.POSTED!not-for-mail
References: <05aa1ce92e8bac6001b76802f826528a@rocksolidbbs.com>

Show Full Headers
Complete Article Headers
Message-ID: <d85f0a21e8221e0893a2e263af820dda$1@sybershock.com>
Subject: Re: rslight database maintenance automated
Date: Wed, 4 Oct 2023 12:13:01 -0500
From: SugarBug <3883@sugar.bug>
References: <05aa1ce92e8bac6001b76802f826528a@rocksolidbbs.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!apf9.newsdeef.eu!i2pn2.org!rocksolid2!.POSTED!not-for-mail
Newsgroups: rocksolid.nodes.announce
Organization: sybershock.com
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: novabbs.org;
 logging-data="1286520"; mail-complaints-to="usenet@novabbs.org";
 posting-account="TzG3Hl99Aa0Fgb506WreKRgRTO2mG9+aGjVDifyfNqo";