fix(scanner): optimize refresh (#4059)

* fix(artist): update RefreshStats to only process artists with recently updated media files

Signed-off-by: Deluan <deluan@navidrome.org>

* fix: paginate Artist's RefreshStats, also replace rawSQL with Expr

Signed-off-by: Deluan <deluan@navidrome.org>

---------

Signed-off-by: Deluan <deluan@navidrome.org>
This commit is contained in:
Deluan Quintão
2025-05-14 20:47:03 -04:00
committed by GitHub
parent ec9f9aa243
commit db92cf9e47
6 changed files with 118 additions and 78 deletions
+2 -1
View File
@@ -36,8 +36,9 @@ watch: ##@Development Start Go tests in watch mode (re-run when code changes)
go tool ginkgo watch -tags=netgo -notify ./...
.PHONY: watch
PKG ?= ./...
test: ##@Development Run Go tests
go test -tags netgo ./...
go test -tags netgo $(PKG)
.PHONY: test
testrace: ##@Development Run Go tests with race detector