fix(subsonic): use SQLite RANDOM() sorting in getRandomSongs, for faster results

Related to #5558

Signed-off-by: Deluan <deluan@navidrome.org>
This commit is contained in:
Deluan
2026-06-05 08:14:00 -04:00
parent 11640f2e4d
commit cf1f190bb5
+1 -1
View File
@@ -92,7 +92,7 @@ func SongsByAlbum(albumId string) Options {
func SongsByRandom(genre string, fromYear, toYear int) Options {
options := Options{
Sort: "random",
Sort: "random()",
}
ff := And{}
if genre != "" {