mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 10:51:36 -04:00
COUNT(*) OVER() forced SQLite to visit every matching file_group before LIMIT, which is a full table scan of the (large) file_group table — ~22s cold on a Pi for videos ordered by download date. Count separately and cache for 60s by filters so indexed orders can stop after one page. Past-the-end pages now report the true total. Videos/archives/docs pagers keep totalPages across page changes. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| test_api.py | ||
| test_archive_downloader.py | ||
| test_archive_modeler_loop.py | ||
| test_collection_id_bug.py | ||
| test_compressed_singlefile.py | ||
| test_config_import_scenarios.py | ||
| test_domain_tagging.py | ||
| test_domains_config.py | ||
| test_lib.py | ||
| test_models.py | ||