From 561a4f44e1e790c301d57b00c4a58ae470d960f7 Mon Sep 17 00:00:00 2001 From: Kavin <20838718+FireMasterK@users.noreply.github.com> Date: Sat, 9 Apr 2022 22:04:16 +0100 Subject: [PATCH] Add index for playlist owner. (#240) --- src/main/java/me/kavin/piped/utils/obj/db/Playlist.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/me/kavin/piped/utils/obj/db/Playlist.java b/src/main/java/me/kavin/piped/utils/obj/db/Playlist.java index 8908b30..71e6d77 100644 --- a/src/main/java/me/kavin/piped/utils/obj/db/Playlist.java +++ b/src/main/java/me/kavin/piped/utils/obj/db/Playlist.java @@ -7,7 +7,7 @@ import java.util.List; import java.util.UUID; @Entity -@Table(name = "playlists", indexes = {@Index(columnList = "playlist_id", name = "playlists_playlist_id_idx")}) +@Table(name = "playlists", indexes = {@Index(columnList = "playlist_id", name = "playlists_playlist_id_idx"), @Index(columnList = "owner", name = "playlists_owner_idx")}) public class Playlist { public Playlist() {