plylst
plylst copied to clipboard
Random doesn't seem random
Hi, creating a playlist sorted randomly doesn't seem to work. It creates a playlist where several tracks by the same artist are sequential (and there are multiple tracks with the same name, but that's another issue).
For instance this playlist "Danceability is Very, Mode is Major. Uses any songs from artists I've liked. Sorted randomly. Limited to 100 songs." has like 8 artists and all in the first half of the alphabet.
It seems that random sorting is currently disabled: https://github.com/Shpigford/plylst/commit/00f069b54fc0d9bddcc96c35bacf0de023ad06ff
@maxnowack is correct. The random sorting was causing performance issues that I haven't had a chance to look in to yet.
@Shpigford have you tested this gem? https://github.com/haopingfan/quick_random_records
@dlt I have indeed, but I had issues with GROUP BY errors that I couldn't nail down. The playlist rule builder creates some really complex queries, unfortunately.