mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-12-02 20:59:56 -05:00
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> |
||
|---|---|---|
| .. | ||
| archive | ||
| docs | ||
| flasher | ||
| inventory | ||
| map | ||
| repos | ||
| torrents | ||
| videos | ||
| zim | ||
| __init__.py | ||