🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: rocksolid.nodes.announce
Article #485

rslight database maintenance automated

#485
From: Retro Guy
Date: Wed, 04 Oct 2023 14:18
8 lines
1614 bytes
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.

-- 
Retro Guy
Technical Details
Message-ID: <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!archive!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <05aa1ce92e8bac6001b76802f826528a@rocksolidbbs.com>
Subject: rslight database maintenance automated
Date: Wed, 4 Oct 2023 14:18:33 +0000
From: retro.guy@rocksolidbbs.com (Retro Guy)
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!apf9.newsdeef.eu!archive!not-for-mail
X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on novalink.us
Newsgroups: rocksolid.nodes.announce
X-Rslight-Site: $2y$10$J6ZfRiE9olQZCRuGl.1pfuo1Kx7VY7yneBB8f6bUHf1JMHWDL8JBO
X-Rslight-Posting-User: 7f2224730128256930309c9186f6203084896743
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
User-Agent: Rocksolid Light 0.9.1
Organization: RetroBBS
X-Face: .&YR-G(w(DZ$$,}%k=]*5*!p'=(anr"IT`wZG'2VWdfl\r)l[42u7JH`n(JUQ*e5*A|XCDf
 ?&\X&uwkl38"CYX3O8m}C8E4p'%N$2#kSTVzx{Ly|DjLT\Vk7NE}NQ(VC$Yq]i:7|z[.9iv^g>*8_B
 H0=hZt'[%)4kG|