Article View: alt.computer.workshop
Article #1511Re: Anti-AI
From: Brock McNuggets
Date: Sun, 15 Nov 2026 20:58
Date: Sun, 15 Nov 2026 20:58
93 lines
6079 bytes
6079 bytes
On 15 Nov 2026, Brock McNuggets wrote in <1794774495.13B6973F-45D7-4E66-A743-66604688EE4C@gmail.com>: > 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. My log keeps track of times... ran the search again and it was about .6 seconds. Ran it a few times and there is, of course, variation above and below that based on what the app is doing and other variables. -- You can't find peace with someone at war with themselves.
Technical Details
Message-ID:
<1794776304.B74384AD-9031-4E11-B587-EE0B8D3370ED@gmail.com>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news-sfo.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer05.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.netnews.com!feed-2.dca.netnews.com!dca.netnews.com!not-for-mailReferences:
<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> <1794774495.13B6973F-45D7-4E66-A743-66604688EE4C@gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news-sfo.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer05.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.netnews.com!feed-2.dca.netnews.com!dca.netnews.com!not-for-mail
X-Trace: DXC=dcUkc7^kOGLe^RP6UaCF7KHWonT5<]0TM@GOK[m5A6WB3[L8B6BE9jML>>SfYeF<nD^:lZX>fNCdB?`dTjf`b32Mb0M@O_V6DUF1O6ZH_@QN0L
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:58:24 -0700
Message-ID: <1794776304.B74384AD-9031-4E11-B587-EE0B8D3370ED@gmail.com>
Cancel-Lock: sha256:hYiB1zqUPoyITVgxaN+IdbhE1VZsys4u1NK2KX3Cn5g=
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> <1794774495.13B6973F-45D7-4E66-A743-66604688EE4C@gmail.com>
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: 93
NNTP-Posting-Host: 127.0.0.1
X-Trace: 1794776305 reader.netnews.com 23 127.0.0.1:37593
X-Received-Bytes: 5812