plylst icon indicating copy to clipboard operation
plylst copied to clipboard

Random doesn't seem random

Open carlosefonseca opened this issue 5 years ago • 4 comments
trafficstars

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.

carlosefonseca avatar Apr 30 '20 15:04 carlosefonseca

It seems that random sorting is currently disabled: https://github.com/Shpigford/plylst/commit/00f069b54fc0d9bddcc96c35bacf0de023ad06ff

maxnowack avatar May 04 '20 08:05 maxnowack

@maxnowack is correct. The random sorting was causing performance issues that I haven't had a chance to look in to yet.

Shpigford avatar May 04 '20 14:05 Shpigford

@Shpigford have you tested this gem? https://github.com/haopingfan/quick_random_records

dlt avatar May 21 '20 20:05 dlt

@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.

Shpigford avatar May 23 '20 19:05 Shpigford