Deluan Quintão
95b8d9dd04
perf(genre): index genre filtering via join tables across all APIs ( #5940 )
...
Filtering by genre scanned every media_file/album row and JSON-parsed its
`tags` column (a per-row json_tree(tags) EXISTS) with no usable index, so
Finamp's genre screen took 1.9-6.5s per tap against a ~97k-track library.
Album and album-artist genre queries had the same unindexed shape.
Add normalized media_file_tags and album_tags join tables (genre only for
now, via an indexedTagNames allowlist), populated by a new updateTags in
Put (mirroring updateParticipants) and backfilled in the migration. Genre
filtering across the Jellyfin, Subsonic and native APIs now runs as an
index-backed semi-join through shared TagIDSemiJoin/TagNameSemiJoin helpers
instead of a full scan. On a copy of the production DB the per-request cost
for a typical genre drops from ~330ms to sub-millisecond, adding ~10MB.
2026-08-11 08:00:50 -04:00
..
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-07-02 09:46:57 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-12 15:53:37 -04:00
2026-06-13 13:15:20 -04:00
2026-06-18 09:58:43 -04:00
2026-06-29 16:18:29 -04:00
2026-07-02 12:53:10 -04:00
2026-07-03 08:58:55 -04:00
2026-07-13 11:32:03 -04:00
2026-07-14 07:38:25 -04:00
2026-07-14 11:46:37 -04:00
2026-07-18 22:59:53 -04:00
2026-08-02 12:58:53 -04:00
2026-08-09 15:03:27 -04:00
2026-08-10 11:42:27 -04:00
2026-08-11 08:00:50 -04:00
2026-08-02 12:58:53 -04:00
2026-08-02 12:58:53 -04:00
2026-07-13 12:04:29 -04:00
2026-08-02 12:58:53 -04:00
2026-08-02 12:58:53 -04:00