From 309a2211f463c905f5577f0f380fcbcc72738584 Mon Sep 17 00:00:00 2001 From: Liam Date: Thu, 25 Apr 2024 06:49:49 +0100 Subject: [PATCH] don't bother with indexing for now until it becomes an issue --- src/main/java/cc/fascinated/backend/model/score/Score.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/cc/fascinated/backend/model/score/Score.java b/src/main/java/cc/fascinated/backend/model/score/Score.java index bcb8f53..b793b12 100644 --- a/src/main/java/cc/fascinated/backend/model/score/Score.java +++ b/src/main/java/cc/fascinated/backend/model/score/Score.java @@ -9,6 +9,7 @@ import lombok.Getter; import lombok.Setter; import org.springframework.data.annotation.Id; import org.springframework.data.mongodb.core.index.CompoundIndex; +import org.springframework.data.mongodb.core.index.Indexed; import org.springframework.data.mongodb.core.mapping.Document; import java.util.ArrayList; @@ -19,7 +20,6 @@ import java.util.List; * A score for an account. */ @Document -@CompoundIndex(name = "accountId_leaderboardId", def = "{'accountId' : 1, 'leaderboardId' : 1}", unique = true) @AllArgsConstructor @Getter @Setter public class Score { /**