wrolpi/alembic
lrnselfreliance 59e61fb475
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
Order Videos by view count from video_statistics_idx, not the video rows (#1094)
Ordering the Videos page by view count looked up every Video's row to read
view_count, for the page and again for its count.  Video rows are wide
(ffprobe_json), so from a cold disk cache this timed out on a large library.

view_count is appended to video_statistics_idx, which the planner already
uses for file_group_id lookups, so both queries read only indexes.  The
migration ANALYZEs the recreated index: without its statistics row SQLite
falls back to the unique file_group_id index and reads the rows again.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-04 19:40:43 -07:00
..
versions Order Videos by view count from video_statistics_idx, not the video rows (#1094) 2026-12-04 19:40:43 -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.