🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #93156

Re: RFC: Open sourcing csiph-web

#93156
From: Kevin Bowling
Date: Fri, 27 Nov 2026 15:08
40 lines
3217 bytes
On 11/27/26 7:56 AM, Colin Macleod wrote:
> Kevin Bowling <kevin.bowling@kev009.com> posted:
>>
>> Without consideration, if you deployed it on the open web to a random
>> NNTP server or your own, it would likely DoS the NNTP server.  The
>> biggest expense is article threading due to large thread windows and
>> bots not doing linear (cache friendly) sweeps.
> 
> Perhaps you might be interested in how I do threading on newsgrouper.org?
> This runs on a fairly modest home PC - 8 logical cores, 32GB ram, 1TB ssd
> for the overview database.  I don't run my own nntp server.
> 
> I pull XOVER data from three different remote nntp servers on demand and
> load this into an "over" table in a Sqlite database.  The schema can be
> seen at
> https://chiselapp.com/user/cmacleod/repository/newsgrouper/file?ci=tip&name=scripts/db_create.tcl&ln=17-21
> Here I have a field "prev" which is the message-id of the last entry in the
> References header, which is usually the message being replied to, if any.
> There are indexes on this "prev" field and the actual "msgid", combined with
> a group identifier.
> 
> I can then use recursive SQL queries to follow these msgid/prev pointers
> to pull out a single thread:
> https://chiselapp.com/user/cmacleod/repository/newsgrouper/file?ci=tip&name=news_code.tcl&ln=2879-2886
> or all the threads in a time range:
> https://chiselapp.com/user/cmacleod/repository/newsgrouper/file?ci=tip&name=news_code.tcl&ln=2889-2900
> 
> I still need to chase these pointers between the records in memory to build
> the thread tree structure, but that's quite fast:
> https://chiselapp.com/user/cmacleod/repository/newsgrouper/file?ci=tip&name=news_code.tcl&ln=2907-3027
> 
> I find this works well, with quite quick response and no great load on the
> machine.  I do have various bot defence measures also, and perhaps fewer
> user than you.
> 

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.
Technical Details
Message-ID: <11ec6dc$d9b$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>

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 08:08:28 -0700
Organization: csiph.com Internet News Service
Message-ID: <11ec6dc$d9b$1@csiph.com>
References: <11ebphq$546$1@csiph.com> <1795791419-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 15:08:28 -0000 (UTC)
Injection-Info: csiph.com; posting-host="172.83.102.10";
	logging-data="13611"; mail-complaints-to="admin@kev009.com"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:iex8Gf8I4Vg8yCXTV3tH5VyJGSw= sha256:CX62Qrc9bcd+E2cUGPMQpv2PFdqF3iRES6MrRA0vlTE=
	sha1:U82YTFKIRjnp8h4IZTWYwIaI7WU= sha256:XNoUw9SyiqhdJcKgMibZTNDNsM0ZddHUpO6jomVWXu0=
Content-Language: en-US
In-Reply-To: <1795791419-7@newsgrouper.org>