mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-12-03 21:29:59 -05:00
_fetch_section_hints matched the search against every doc section in the library, joined each match to doc_section and doc, and only then kept the requested FileGroups. A common word matches thousands of sections, and each join is a random read of a large section row, so a cold files or docs search spent most of its time here, even when no result on the page was a doc. The match is now limited to the rowids of the requested docs' sections, read from covering indexes. The results are the same. 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 | ||