wrolpi/modules/docs/test
lrnselfreliance 839aadbb56
Doc section hints match each doc's rowid range, not each section (#1091)
#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>
2026-12-03 19:37:19 -07:00
..
__init__.py Add Docs module for searching and organizing PDFs and EPUBs 2026-03-20 14:17:06 -06:00
test_api.py Search: drop stopwords from unquoted terms, as Postgres did (#1085) 2026-12-03 17:16:36 -07:00
test_doc_modeler.py A refresh compare and the doc modeler read file_group through its indexes (#1083) 2026-12-02 15:12:06 -07:00
test_extractors.py API startup no longer imports pymupdf (#946) 2026-11-03 15:01:45 -07:00
test_lib.py Doc section hints match each doc's rowid range, not each section (#1091) 2026-12-03 19:37:19 -07:00
test_models.py Add Docs module for searching and organizing PDFs and EPUBs 2026-03-20 14:17:06 -06:00