Add index for video uploaded.

This commit is contained in:
FireMaskterK 2021-11-08 20:53:48 +00:00
parent e629121c25
commit 0d3b167e8a
No known key found for this signature in database
GPG key ID: 49451E4482CC5BCD

View file

@ -11,7 +11,8 @@ import javax.persistence.Table;
@Entity
@Table(name = "videos", indexes = { @Index(columnList = "id", name = "videos_id_idx"),
@Index(columnList = "uploader_id", name = "video_uploader_id_idx") })
@Index(columnList = "uploader_id", name = "video_uploader_id_idx"),
@Index(columnList = "uploaded", name = "video_uploaded_idx") })
public class Video {
@Id