🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.computer.workshop
Article #1510

Re: Anti-AI

#1510
From: Brock McNuggets
Date: Sun, 15 Nov 2026 20:28
85 lines
5572 bytes
On 15 Nov 2026, Apd wrote in
<11dcv3k$307vf$1@apd.eternal-september.org>:
> On 14/11/2026 23:42, Brock McNuggets wrote:
>> On 14 Nov 2026, Apd wrote:
>>> Perhaps a query for a given date span using the above fields.
>>
>> Any suggestions for a search? Maybe some word in the original
>> text (non-quoted) and then another word in 1-2 levels deep but
>> not in original... and then maybe some range of lines? Just
>> pulling something out of my rear. Open to whatever.
> 
> What can be queried depends on the DB. In those SC and I have been
> working on, there are no multiple levels of text stored as columns
> (only original and quoted). Extra parsing would have to be done
> outside an SQL query once the whole article body had been
> retrieved; similarly for line selection.

That is how my app handles it. For example, I have a test search now
looking for the word "router" at 1 level deep (directly quoted). You
do not write the SQL yourself, but it will show it to you:

-----
-- Quote depth: posts the full-text MATCH finds are then kept,
outside SQL, only if "router" is on a line quoted exactly 1 level
deep.
-- One copy per post: after this query, outside SQL, rows with the
same messageId are cut to one, the open server's copy first.
SELECT id, messageId, serverId, groupName, articleNumber, subject,
    authorName, authorEmail, date, byteCount, lineCount,
    referencesHeader, parentMessageId, isRead, isStarred,
    isSaved, isKilled, score, NULL AS bodyText, NULL AS
    rawHeaders, contentType, hasBodyDownloaded, tagNames,
    createdAt
FROM articles
WHERE articles.hasBodyDownloaded = 1
AND articles.rowid IN (SELECT rowid FROM articles_fts WHERE
articles_fts MATCH 'bodyText : "router"*')
ORDER BY +articles.date DESC;
-----
(rewrapped for Usenet)

So it tells you what is happening. That is just for folks who want
to see it or debugging... the general user sees this:

https://shottr.cc/s/PfIj/SCR-20261115-iq9

If you see anything amiss there I would appreciate whatever advice
you have.

> That post-processing
> isn't being done. I imagine your app is having to do this (check
> your DB schema). IOW, our speed of searches is only dependant on
> the SQLite library which DB Browser and Python use, with minimal
> overhead when using an HTML interface.

I looked at some old searches you talked about... pretty sure you
are faster -- though the search above is pretty much instant
(assuming no other database work is going on).

> I take it you're using an SQLite DB so your best bet would be to
> test your queries from the CLI or install DB Browser (for the
> benefit of a GUI) and load your own DB. Then you can get a
> realistic comparison between your app and the native speed of
> SQLite.

Makes sense. While I want the searches to be fairly fast, I am not
seeking to be perfect there -- I also want low memory and relatively
low drive usage (though it does have a fair amount of overhead
there).

> For the record, a query for my own posts with MID and timestamp,
> containing the string "sqlite" and ordered by date/time takes
> under a second on a db containing over 271000 articles.

My database is over 2M and it takes less than a second. Likely yours
would as well.

Again, no pissing contest here... mostly curious in case there are
places where mine is doing things poorly. If there are searches
which take a long time I might post and ask for advice. Most of the
ones I have tested, though, are well within my acceptable level.


-- 
You can't find peace with someone at war with themselves.
Technical Details
Message-ID: <1794774495.13B6973F-45D7-4E66-A743-66604688EE4C@gmail.com>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srv.newsdeef.eu!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!feeder.usenetexpress.com!tr3.iad1.usenetexpress.com!news-out.netnews.com!netnews.com!s1-4.netnews.com!news-out.netnews.com!feed-5.dca.netnews.com!dca.netnews.com!not-for-mail
References: <11d5ino$d58b$1@apd.eternal-september.org> <nlp1f3FogueU1@mid.individual.net> <nlp5prFogueU4@mid.individual.net> <11d7sj3$1d9m1$2@apd.eternal-september.org> <6af782b8$4$23$882e4bbb@reader.netnews.com> <11d838h$1fe55$1@apd.eternal-september.org> <6af79dac$5$48795$882e4bbb@reader.netnews.com> <1794617994.2FC0D3A7-CBFC-471C-B71D-54C294B5BFC1@gmail.com> <6af82465$3$23$882e4bbb@reader.netnews.com> <1794668323.8802E96F-CDE9-4657-AC53-8FBEFA724213@gmail.com> <1794687643.D0DDA49A-88E7-4932-99D1-55718F4B385F@gmail.com> <11dapa1$2b84g$1@apd.eternal-september.org> <1794699723.2C8C81DC-4954-4364-B5C8-306BC53A5952@gmail.com> <11dcv3k$307vf$1@apd.eternal-september.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srv.newsdeef.eu!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!feeder.usenetexpress.com!tr3.iad1.usenetexpress.com!news-out.netnews.com!netnews.com!s1-4.netnews.com!news-out.netnews.com!feed-5.dca.netnews.com!dca.netnews.com!not-for-mail
X-Trace: DXC=m:5`YkS1Mh6o:B7l=o;^c3HWonT5<]0T=@GOK[m5A6W23[L8B6BE9j=G]B:S<74_1=^:lZX>fNCd2?`dTjf`b32=b0M@O_V6DU61O6ZH_@QN0<
X-Complaints-To: support@blocknews.net
From: Brock McNuggets <brock.mcnuggets@gmail.com>
Newsgroups: alt.computer.workshop
Subject: Re: Anti-AI
Date: Sun, 15 Nov 2026 13:28:15 -0700
Message-ID: <1794774495.13B6973F-45D7-4E66-A743-66604688EE4C@gmail.com>
Cancel-Lock: sha256:iVZGT2KK5EVVKrdIwWeiQxS4VJfuT8s4JTK2DGWyoMg=
References: <11d5ino$d58b$1@apd.eternal-september.org> <nlp1f3FogueU1@mid.individual.net> <nlp5prFogueU4@mid.individual.net> <11d7sj3$1d9m1$2@apd.eternal-september.org> <6af782b8$4$23$882e4bbb@reader.netnews.com> <11d838h$1fe55$1@apd.eternal-september.org> <6af79dac$5$48795$882e4bbb@reader.netnews.com> <1794617994.2FC0D3A7-CBFC-471C-B71D-54C294B5BFC1@gmail.com> <6af82465$3$23$882e4bbb@reader.netnews.com> <1794668323.8802E96F-CDE9-4657-AC53-8FBEFA724213@gmail.com> <1794687643.D0DDA49A-88E7-4932-99D1-55718F4B385F@gmail.com> <11dapa1$2b84g$1@apd.eternal-september.org> <1794699723.2C8C81DC-4954-4364-B5C8-306BC53A5952@gmail.com> <11dcv3k$307vf$1@apd.eternal-september.org>
Organization: Southern Nevada Institute of Technology
X-Face: ^m&X&W\S`;21YE|'E$pgTTp#keO$-zPH*rMUIV{)JMc'cH_`Ec36#`C#o30OnRJmK<Mk&Rg6+M-c@1-gc<oSfkzW1@MdJ=H`.WM)v=Ogn3]K!B"IK6aH3K#Kq>\ET17F4PDm=+Y(38V=TM/V'ZMwjzbS.qBag~H&L#u1]ir1u=8i!h
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
User-Agent: Loom GS/0.1 (macOS)
Lines: 85
NNTP-Posting-Host: 127.0.0.1
X-Trace: 1794774496 reader.netnews.com 22 127.0.0.1:33357