mirror of
https://github.com/navidrome/navidrome.git
synced 2026-08-01 07:21:17 +00:00
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:
parent
11640f2e4d
commit
cf1f190bb5
@ -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 != "" {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user