mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-12-04 13:49:57 -05:00
#1087 limited the hint match to the page's section rowids with `rowid IN (...)`. FTS5 runs the whole MATCH again for every rowid, so the cost grew with the page's sections: an all-doc page of a common word took seconds even with a warm cache. The match is now limited to each doc's range of section rowids (one `rowid BETWEEN` per doc, read from covering indexes), so FTS5 runs at most one MATCH per doc and reads only that doc's part of the match list. A section of another doc inside a range is dropped by `ds.doc_id`. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| test_api.py | ||
| test_doc_modeler.py | ||
| test_extractors.py | ||
| test_lib.py | ||
| test_models.py | ||