Add index for playlist owner. (#240)

This commit is contained in:
Kavin 2022-04-09 22:04:16 +01:00 committed by GitHub
parent f08c6c4ebf
commit 561a4f44e1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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