🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #93159

Re: RFC: Open sourcing csiph-web

#93159
From: Kevin Bowling
Date: Fri, 27 Nov 2026 20:54
35 lines
2992 bytes
On 11/27/26 9:56 AM, Colin Macleod wrote:
> Kevin Bowling <kevin.bowling@kev009.com> posted:
>>
>> If I understand correctly your thread window is 500?  That would be fast
>> for most servers.  For arbitrary reasons (usenet discussions can span a
>> long time range) I currently do 10000, which creates a huge amount of
>> OVER work for inn.
> 
> I forgot to explain that the "over" database table has been preloaded with
> the entire group history, for some groups back to the 1980s. I just pull in
> *new* XOVER data to bring it up-to-date when someone reads that group. The
> full db is around 660GB.

Thanks for clarifying, that is helpful including the total sizing.

> Then there are two cases of query:
> When "sought" is not set we have a window of 500 (postbatch) but those
> are just the starting points, the sql query pulls in any earlier posts
> referenced from those, and so on recursively to complete all those threads
> even if they go back for years.
> 
> When "sought" is set we are completing the thread structure for an
> individual post which has been found by a historical search.  In this
> case the sql query starts from that one post and follows the msgid/prev
> links recursively backwards AND forwards to find all posts in that thread.
> 
> Of course preloading the database takes quite some time, but once that's
> done the load on the nntp servers is minimal.  The recursive sql queries
> are tricky to get right, but very powerful once you get the hang of them.
> I also had to run Sqlite's `PRAGMA optimize` a few times to make sure the
> correct indexes were being used.  Without that it was horribly slow, with
> the right optimization it became incredibly fast.

I'll definitely take a look at your queries.  sqlite might be a decent 
way to do this in inn as an optional feature if I go that route.
Technical Details
Message-ID: <11ecqlr$ov1$1@csiph.com>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!weretis.net!feeder9.news.weretis.net!csiph.com!.POSTED.172.83.102.10!not-for-mail
References: <11ebphq$546$1@csiph.com> <1795791419-7@newsgrouper.org> <11ec6dc$d9b$1@csiph.com> <1795798608-7@newsgrouper.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!weretis.net!feeder9.news.weretis.net!csiph.com!.POSTED.172.83.102.10!not-for-mail
From: Kevin Bowling <kevin.bowling@kev009.com>
Newsgroups: news.software.nntp
Subject: Re: RFC: Open sourcing csiph-web
Date: Fri, 27 Nov 2026 13:54:19 -0700
Organization: csiph.com Internet News Service
Message-ID: <11ecqlr$ov1$1@csiph.com>
References: <11ebphq$546$1@csiph.com> <1795791419-7@newsgrouper.org>
 <11ec6dc$d9b$1@csiph.com> <1795798608-7@newsgrouper.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 27 Nov 2026 20:54:19 -0000 (UTC)
Injection-Info: csiph.com; posting-host="172.83.102.10";
	logging-data="25569"; mail-complaints-to="admin@kev009.com"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:lyDnACjNm2kQUaNZDjla/+QniHc= sha256:t4+lphxHraPbRgThgFjaXSncO6rR+wfy49880aD+Qt0=
	sha1:r4ZRJNDO5Tkcd4/nyAgSKWPreXw= sha256:brPtqcZHx9zD/wHunaPK4OVCHmZp0m/dkl3Tkokaxco=
Content-Language: en-US
In-Reply-To: <1795798608-7@newsgrouper.org>