Article View: news.software.nntp
Article #93158Re: RFC: Open sourcing csiph-web
From: Colin Macleod
Date: Fri, 27 Nov 2026 16:56
Date: Fri, 27 Nov 2026 16:56
37 lines
3689 bytes
3689 bytes
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. 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. -- Colin Macleod ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ https://cmacleod.me.uk BLACK FRIDAY SPECIAL DEAL - 50% Extra Signature Free! RESISTANCE IS FUTILE! - ok, what about inductance? FEED GAZA NOW! SAVE GAZA NOW! HOUSE GAZA NOW! FEED GAZA NOW!
Technical Details
Message-ID:
<1795798608-7@newsgrouper.org>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!newsgrouper.org!.POSTED!not-for-mailReferences:
<11ebphq$546$1@csiph.com> <1795791419-7@newsgrouper.org> <11ec6dc$d9b$1@csiph.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!newsgrouper.org!.POSTED!not-for-mail
From: Colin Macleod <user7@newsgrouper.org.invalid>
Newsgroups: news.software.nntp
Subject: Re: RFC: Open sourcing csiph-web
References: <11ebphq$546$1@csiph.com> <1795791419-7@newsgrouper.org> <11ec6dc$d9b$1@csiph.com>
Date: Fri, 27 Nov 2026 16:56:48 GMT
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Message-ID: <1795798608-7@newsgrouper.org>
Injection-Info: newsgrouper.org; mail-complaints-to="newsgrouper@yahoo.com"; posting-account=user7
Injection-Date: Fri, 27 Nov 2026 16:56:48 GMT
User-Agent: Newsgrouper/0.9.0
Organization: You cannot be serious!!!
X-Face: ;>4')~8UD=d.R[\.@A;)N{u_j#_=cmLx$}bIc4.3By~hf[q~|cf59?%bLtS)G@w#32G1%7y
kz`PF}nwv'neqs,&gJm|V!,Xuekf[YIYQB7[Px"t#|rqb20(<F+y~
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAAWlBMVEUOqj99lWv/gSb8+vzH
yfDKcKfawMf/wXL/xwX/0DL/4MgAnuf////woTuJAg9haNWbJVrmDRbf8/wXqt0wOcfWPknT
or8xStFls+AyPs/XiXvV447V5/JsPbGdJXGAAAAByElEQVRIie2V0XqDIAyFqaGoaKWztSDi
+7/mkkoVFLbuonfLTeUzP+ckNMjaPwb7Bz4CcB+uh/eA0YdWSvE3mBW4Y4zKvW+JG6XGu+p/
BYJnMHrkwVrYYbDyB6AFNap1Ie3XMwaZB1oEXnWLAXPtQEikEgNmBWh7C6SDTCGzwN0DmD+I
l7WiKErIAHoBRNcF1iURGaC5EQDXrgt9EyFTANwaQ7+PrrPRRnKTSAEocN39ScqigDwg9gJP
QOYBG1fwDrB3lLPU5wC4FJcU4JqGJy1Bpku8aWggjkXLzDngudE8HNtaro7iefDndvBEjsBx
x40xIcCXEtDT9SpiR1YprTXNcQh4Rxjn+bxNt+NK08yPd7ooAgB7ZPyjQGIxDc9sjamGrqK+
DwCz9OgZj5kIcI8zbq3nk0jMQyCAG5+RwJjnWRm79SgAACsIbiUiZoJEj8dctkdAMLYJEPFA
AUFbTEVqpuHEWPoSg7qq4QigwJTMb8uqSl0zWQFZVXW49oBj7JQzFAm8AHSUvrjRUGzVAxNj
yW8D5tfxiw0Qbj9mUqKfejdLmyWsYon6FVV1zA/b6uNUbVGXB6PrSfdi8gqlFygnmajr89/p
b4k/bLhxPQ+xAAAAAElFTkSuQmCC
Behaviour: mis*