Steve Carroll wrote:
> On 2026-11-16, Apd <n…@all.invalid> wrote:
>>
>> On 16/11/2026 15:02, Steve Carroll wrote:
>>> On 2026-11-15, Apd wrote:
>>>> 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.
>>>
>>> <https://i.postimg.cc/CY6bBx2f/query.jpg>
>>
>> I don't understand. Where do is "s.line" and "s.n" come from and how do
>> you calculate them? That is, how do you break up a text value (body)
>> into a series of lines with SQL that it can then use?
>
> I'd like to see how Glasser did it... if he did it. I'll show you
> 'elsewhere' but, in a nutshell, 's' is an alias for a recursive CTE
> (CTEs can call themselves, which should answer that question... we've
> used them in the past to do so, I think).
>
>>> The only downside is the forced used of 'LIKE' but even that is
>>> tolerable in the query I ran (using 'script' and 'code') based on what I
>>> *think* he was trying to say above... took 2265ms on a first run.
>>
>> That appears to be the intent.
>
> The problem with a form is as it's always been, someone will always want
> more. In any event, he's trying to 'compare' something that attempts to
> lead the user away from using a form and towards learning some SQL...
> 'apples and winnebagos'.
>
>>> Not sure why this stuff is part of his app's criteria, seems pretty
>>> useless to me, taxing for no good reason <shrug>.
>>
>> I can't see the utility of it, particularly when posts should quote as
>> few levels and minimum amount as possible for context.
>
> Exactly.
>
>>> The more he tries to do what my flask app does (unlimited SQLite
>>> 'read' flexibility), the bigger that database will grow for the end
>>> user who will undoubtedly want to read multiple newsgroups with it,
>>> compounding the problem.
>>
>> Yes, if more FTS tables and indexes are added to speed things up.
>
> Can you imagine what a single db, that had multiple groups in it, would
> look like when indexed to the level he's using. I know SQLite can do it
> but man... that's just asking for trouble IMO. I envision groups that
> wouldn't need FTS because the user wouldn't really care about searching
> their more 'casual' groups... I suppose that'd be one way to mitigate
> things to some extent, make it optional. Don't most 'text' clients just
> grab headers via OVER and bodies on demand?
>
are you going to talk about this 28,000 times