Skip to content

Commit

Permalink
fix: Certification 테이블의 인덱스 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
SSung023 committed Nov 6, 2024
1 parent 70f2927 commit a160585
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,12 @@
@Entity
@NoArgsConstructor(access = AccessLevel.PROTECTED)
@DynamicInsert
@Table(indexes = {@Index(name = "certificated_at_index", columnList = "certificated_at")})
@Table(indexes = {
@Index(
name = "idx_participant_cert_attempt",
columnList = "participant_id, certificated_at, current_attempt DESC"
)
})
public class Certification extends BaseTimeEntity {
@Id
@Column(name = "certification_id")
Expand Down

0 comments on commit a160585

Please sign in to comment.