From a160585e353749b6a6f2d8e620ae82165c2c3212 Mon Sep 17 00:00:00 2001 From: SSung023 <50323157+SSung023@users.noreply.github.com> Date: Wed, 6 Nov 2024 19:31:37 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20Certification=20=ED=85=8C=EC=9D=B4?= =?UTF-8?q?=EB=B8=94=EC=9D=98=20=EC=9D=B8=EB=8D=B1=EC=8A=A4=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../challenge/certification/domain/Certification.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/genius/gitget/challenge/certification/domain/Certification.java b/src/main/java/com/genius/gitget/challenge/certification/domain/Certification.java index 4813a068..9248f88d 100644 --- a/src/main/java/com/genius/gitget/challenge/certification/domain/Certification.java +++ b/src/main/java/com/genius/gitget/challenge/certification/domain/Certification.java @@ -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")