diff --git a/lib/music_library/records.ex b/lib/music_library/records.ex index 4f05cc69..b804924c 100644 --- a/lib/music_library/records.ex +++ b/lib/music_library/records.ex @@ -279,6 +279,7 @@ defmodule MusicLibrary.Records do from records, json_each(records.artists) artist group by name order by count desc + limit 30 """), select: {fragment("name"), fragment("count")} @@ -296,6 +297,7 @@ defmodule MusicLibrary.Records do from records, json_each(records.genres) genre group by name order by count desc + limit 30 """), select: {fragment("name"), fragment("count")} diff --git a/lib/music_library_web/live/stats_live/index.html.heex b/lib/music_library_web/live/stats_live/index.html.heex index 3858f1e6..29ff21ab 100644 --- a/lib/music_library_web/live/stats_live/index.html.heex +++ b/lib/music_library_web/live/stats_live/index.html.heex @@ -73,11 +73,11 @@