Do not use DISTINCT on track queries, as this is useless and slowdowns queries

This commit is contained in:
emeric
2024-02-05 11:22:58 +01:00
parent 01538166ed
commit 889096190a
9 changed files with 59 additions and 65 deletions
@@ -105,7 +105,6 @@ namespace Recommendation
Track::FindParameters params;
params.setTrackList(tracklistId);
params.setSortMethod(TrackSortMethod::TrackList);
params.setDistinct(false);
for (const TrackId trackId : Track::findIds(dbSession, params).results)
tracks.push_back(trackId);