Add index for playlist owner.

This commit is contained in:
Kavin 2022-04-09 21:59:18 +01:00
parent f08c6c4ebf
commit 7a519ba59b
No known key found for this signature in database
GPG key ID: 49451E4482CC5BCD

View file

@ -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() {