Article View: rocksolid.nodes.announce
Article #487Re: rslight database maintenance automated
From: Retro Guy
Date: Wed, 04 Oct 2023 21:07
Date: Wed, 04 Oct 2023 21:07
52 lines
3306 bytes
3306 bytes
On Wed, 4 Oct 2023 12:13:01 -0500 SugarBug <3883@sugar.bug> wrote: > 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 not sure that it is faster. It would depend on your filesystem, etc. Just like with inn, all these files (articles) take up a lot of inodes, so a database resolves that issue (or create your filesystem with a lot of inodes). Overview access is faster with sqlite, as in tradspool all the overview data is in one big flat file. When you want to search for something in there, you need to read through the file until you find it. sqlite is faster for this specific need. Also, sqlite systems will have the added features of searching article bodies, and also providing snippets of each post in overboard, search etc. > 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. That might make sense. Then you provide all features on your public peer, but maintain the ability to work directly with the spool on your internal servers. > 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. grep is your friend :) -- Retro Guy
Technical Details
Message-ID:
<20231004140708.44952c5ea7df8ec5af29fa6e@novabbs.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!.POSTED!not-for-mailReferences:
<05aa1ce92e8bac6001b76802f826528a@rocksolidbbs.com> <d85f0a21e8221e0893a2e263af820dda$1@sybershock.com>Show Full Headers
Complete Article Headers
Message-ID: <20231004140708.44952c5ea7df8ec5af29fa6e@novabbs.com>
Subject: Re: rslight database maintenance automated
Date: Wed, 4 Oct 2023 14:07:08 -0700
From: Retro Guy <retroguy@novabbs.com>
References: <05aa1ce92e8bac6001b76802f826528a@rocksolidbbs.com> <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!.POSTED!not-for-mail
Newsgroups: rocksolid.nodes.announce
Organization: novaBBS
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: i2pn2.org;
logging-data="328476"; mail-complaints-to="usenet@i2pn2.org";
posting-account="t+lO0yBNO1zGxasPvGSZV1BRu71QKx+JE37DnW+83jQ";
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|
X-Newsreader: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu)