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