🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #93032

Re: Articles slow to appear in ovsqlite overview (INN 2.8.0 20260703 snapshot)

#93032
From: Julien ÉLIE
Date: Mon, 17 Aug 2026 09:01
53 lines
3585 bytes
Hi Jesse,

> I have two servers running INN 2.8.0 with different snapshot versions. With my
> original/old server running an older snapshot when an article is accepted it
> is immediately available in the overview database. On the new server there is
> a ~10 second delay before accepted articles appear in the overview database.
> 
> Old server: INN 2.8.0 (20250329 snapshot)
> New server: INN 2.8.0 (20260703 snapshot)
> 
> I know there has been recent work on ovsqlite, and I'm not sure if code
> changes could be to blame, or something else but I'm out of ideas.

I think the difference was introduced with WAL mode:

"""
walmode (ovsqlite.conf)

If this parameter is true, ovsqlite will use SQLite's WAL (Write-Ahead 
Logging) journal mode instead of the default PERSIST mode.  WAL mode 
allows concurrent readers and writers without blocking, which 
significantly improves read performance when multiple nnrpd processes 
access the overview database simultaneously.  It also sets "synchronous" 
to NORMAL, which is safe with WAL and reduces unnecessary fsync overhead.
"""

According to SQLite documentation (https://sqlite.org/pragma.html), the 
"synchronous" flag is FULL by default, and indeed keeps synchronizing 
all content to disk.  With WAL, the NORMAL setting seems to be 
encouraged to save that synchronization.


> Thought this could be due to a difference in transtimelimit, but the servers
> are configured the same in that respect. On the new server it feels like it's
> waiting ~10 seconds to commit the transaction, whereas on the older server it
> is near instant.

I bet the NORMAL setting then uses that max time for a transaction 
(transtimelimit).  Kevin or Bo, our SQL experts, will probably confirm.

Is that behaviour troublesome for you or a special use case?
Maybe we would then need for instance a "fullsynchronous" (true/false) 
setting in ovsqlite.conf to configure that if needed?  The previous 
behaviour of FULL corresponds to true, whereas WAL mode makes it false.

Or you can decrease the transtimelimit parameter.

-- 
Julien ÉLIE

« Je suis adroit de la main gauche et je suis gauche de la main
   droite. » (Raymond Devos)
Technical Details
Message-ID: <115uiki$uifj$1@news.trigofacile.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!newsfeed.bofh.team!news.trigofacile.com!.POSTED.2a01:cb1d:8644:d400:6873:3e7a:84e6:3f4b!not-for-mail
References: <115pqjg$1h9e$1@nnrp.usenet.blueworldhosting.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!newsfeed.bofh.team!news.trigofacile.com!.POSTED.2a01:cb1d:8644:d400:6873:3e7a:84e6:3f4b!not-for-mail
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
Newsgroups: news.software.nntp
Subject: Re: Articles slow to appear in ovsqlite overview (INN 2.8.0 20260703
 snapshot)
Date: Mon, 17 Aug 2026 11:01:06 +0200
Organization: Groupes francophones par TrigoFACILE
Message-ID: <115uiki$uifj$1@news.trigofacile.com>
References: <115pqjg$1h9e$1@nnrp.usenet.blueworldhosting.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 17 Aug 2026 09:01:06 -0000 (UTC)
Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="2a01:cb1d:8644:d400:6873:3e7a:84e6:3f4b"; logging-data="1001971"; mail-complaints-to="abuse@trigofacile.com";
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:O3+X7qGD40aP8Yigcgb4qReNRI0= sha256:LwGuVHeUR0un8+VswKU5fgn31dqgHkyQuHp/1Vc5Gps=
	sha1:ADWO/t709RhSPMnbd4JGVRqWnqE= sha256:DKMSbbIZZ0Tbqdl0U8T6959IxU9EgB6SsdMleJYgGmY=
In-Reply-To: <115pqjg$1h9e$1@nnrp.usenet.blueworldhosting.com>
X-Postfilter: Postfilter-NG 2026.08.1-rc2