navidrome/db/migrations
Deluan ba16ab4158 perf(pglite): artist stats as hash joins, one statement for a full refresh; bigint library size
The stats UPDATE now joins the materialized counters (with a LEFT JOIN
so artists without files still get '{}') instead of a correlated
subquery, and a full refresh runs as a single statement: 3.3 s for 30k
artists locally versus 30 batches. Batches of 1000 remain for partial
refreshes (0.24 s each).

library.total_size was integer; a 2 TB library overflowed it at the end
of the first scan. It is bigint now, matching the Go int64.

The bridge no longer synthesizes a reply for Terminate, which never gets
one by design.
2026-09-04 23:23:50 -04:00
..
20260905004449_initial_schema.sql perf(pglite): artist stats as hash joins, one statement for a full refresh; bigint library size 2026-09-04 23:23:50 -04:00