🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.computer.workshop
Article #1507

Re: Anti-AI

#1507
From: Steve Carroll
Date: Sun, 15 Nov 2026 19:38
45 lines
3933 bytes
On 2026-11-15, Apd <not@all.invalid> wrote:
> 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 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 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.

Exactly. As there isn't much overhead with Python/Flask there's no
benefit to his comparison with my Flask app. Unless one is pulling like
10,000 rows or more (why do *that*?!), on a modern computer they're not
likely to see much of a difference (I'm still amazed at how fast modern
browser are!).

> 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.


For that (via FTS w/Porter's algo), I got a first run of:

Result: 55 rows returned in 99ms

Second run (which is cached): https://i.postimg.cc/4JRR7W5Y/second-run.jpg

And the query returns these items:

header, message id, date, subject, name, body and original text.
(I have over 275.000 posts in the db this query was run in)
Technical Details
Message-ID: <11dd1nc$2sdjt$1@fretwizzer.eternal-september.org>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!fretwizzer.eternal-september.org!.POSTED!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!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!fretwizzer.eternal-september.org!.POSTED!not-for-mail
From: Steve Carroll <"Steve Carroll"@noSPAM.none>
Newsgroups: alt.computer.workshop
Subject: Re: Anti-AI
Date: Sun, 15 Nov 2026 19:38:20 -0000 (UTC)
Organization: Down Under
Lines: 45
Message-ID: <11dd1nc$2sdjt$1@fretwizzer.eternal-september.org>
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>
Reply-To: noSPAM.none
Injection-Date: Sun, 15 Nov 2026 19:38:21 +0000 (UTC)
Injection-Info: fretwizzer.eternal-september.org;
	logging-data="3028605"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1/QrpVfdOoNG/SDR8jLwvVEc1Feq40MjMdkYpmBcPeNvg=="; posting-host="470f72eb1023f9126ab5669c73b24ac2"
User-Agent: slrn/1.0.3 (Darwin)
Cancel-Lock: sha1:GoNbLJAeIRRCLGA/N/8DewDFHCo= sha256:mZ7q9CBeEP9AlObvL75SuBrBqAdqpCQtxHobGDWg9kU=
	sha1:QMvpahG6daEhK9szYzUUU8aCe3Q= sha256:VmfimEwr7NIT9y+RevjhG2KcrL+pE6RfezzlnNWmfnI=