mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-12-03 21:29:59 -05:00
get_file_statistics summed json_array_length(files) and size over every file_group row. A row also holds the file's indexed text, so on a large library reading every row from a cold disk cache took minutes, and the Statistics page timed out. file_group_statistics_idx (mimetype, size, json_array_length(files)) holds everything the query reads, so it scans only the index. SQLite 3.46 labels the step "USING INDEX" (it opens the table with a deferred seek it never performs); the test checks the bytecode, so it holds on both labels. test_migrations_match_models also checks that every model index exists in the migrated database: alembic's compare_metadata skips expression indexes. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| versions | ||
| env.py | ||
| README | ||
| script.py.mako | ||
Generic single-database configuration.