wrolpi/alembic
lrnselfreliance 94a188097c
Some checks are pending
Backend Tests / api-tests (core) (push) Waiting to run
Backend Tests / api-tests (files) (push) Waiting to run
Backend Tests / api-tests (media) (push) Waiting to run
Backend Tests / api-tests (rest) (push) Waiting to run
Backend Tests / api-contract-tests (push) Waiting to run
Backend Tests / api-migrations-and-start (push) Waiting to run
CodeQL / Analyze (push) Waiting to run
Controller Tests / controller-tests (push) Waiting to run
Cypress Tests / cypress-component-tests (push) Waiting to run
Cypress Tests / cypress-e2e-tests (push) Waiting to run
Dead Code / vulture (push) Waiting to run
Jest Tests / jest-tests (push) Waiting to run
Video statistics are counted from covering indexes (#1093)
The totals and the monthly counts read every video row (ffprobe_json) and
its file_group row (indexed text).  On a large library that took minutes
from a cold disk cache: the monthly query even walked the published-date
index over every FileGroup, reading each row for its size.

Both queries now read only indexes, named with INDEXED BY:
- video_statistics_idx (file_group_id, have_comments, comments_failed)
- file_group_published_size_length_idx gains censored and url, so it
  covers the FileGroup side as it already does for Channel statistics.

url is indexed itself: SQLite does not reliably read an indexed
`url IS NOT NULL` expression from the index (not in a FILTER clause, not
inside AND).

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-04 09:27:25 -07:00
..
versions Video statistics are counted from covering indexes (#1093) 2026-12-04 09:27:25 -07:00
env.py Upgrade to SQLAlchemy 2.0 (synchronous) (#803) 2026-10-09 15:08:40 -06:00
README A new start 2021-11-01 16:43:09 -06:00
script.py.mako Postgres -> SQLite hard cutover: the database moves into the media directory. 2026-07-12 14:09:37 -06:00

Generic single-database configuration.