don't bother with indexing for now until it becomes an issue
All checks were successful
Deploy App / docker (ubuntu-latest, 2.44.0, 17, 3.8.5) (push) Successful in 1m19s

This commit is contained in:
Lee 2024-04-25 06:49:49 +01:00
parent 9af387ca56
commit 309a2211f4

@ -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 {
/**