wrolpi/modules/docs/test
lrnselfreliance 0ccedde3b0
A refresh compare and the doc modeler read file_group through its indexes (#1083)
A refresh compared its roots with `directory LIKE 'root/%'`, and the doc
modeler found comics with `primary_path LIKE '%.cbz'`.  SQLite cannot use an
index for either, so both read every row of file_group.  With a cold page cache
on a large library, a refresh of one empty directory took ~3.5 minutes, and a
move queued behind it waited that long.

The compare now uses a range on `directory` (as `directory_or_descendant` does),
which also stops `_` and `%` in a path acting as wildcards: refreshing `a_b`
reported the FileGroups of `aXb/...` as deleted.  The doc modeler matches the
indexed, lowercased `suffix` column instead.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 15:12:06 -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 Docs sort by their title, ignoring case (#961) 2026-11-12 13:34:59 -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 Search results sort as the filter dialog says (#959) 2026-11-11 19:42:23 -07:00
test_models.py Add Docs module for searching and organizing PDFs and EPUBs 2026-03-20 14:17:06 -06:00