fix(live): index category lookups for catalog search (#49)

Avoid repeated category scans while filtering the paginated Live catalog, and keep the search timing and query-plan reproductions in the regression suite.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-10-22 23:23:46 +02:00
parent 6461c0bb3a
commit 19849304a3
4 changed files with 549 additions and 0 deletions

View File

@ -42,6 +42,8 @@ function initSchema() {
data JSON -- Extra provider data
);
CREATE INDEX IF NOT EXISTS idx_categories_source_type ON categories(source_id, type);
CREATE INDEX IF NOT EXISTS idx_categories_source_type_category
ON categories(source_id, type, category_id);
`);
// Playlist Items (Channels, Movies, Series, Episodes)