From ca77bcf74c1aa67477ee33156a0b38bf0e0d5a5a Mon Sep 17 00:00:00 2001 From: tianfeng <769204422@qq.com> Date: Thu, 13 Nov 2025 14:23:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=B4=A2=E5=BC=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../infra/database/mongo/document/RocketHistoryDocument.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rc-service/rc-service-other/other-infrastructure/src/main/java/com/red/circle/other/infra/database/mongo/document/RocketHistoryDocument.java b/rc-service/rc-service-other/other-infrastructure/src/main/java/com/red/circle/other/infra/database/mongo/document/RocketHistoryDocument.java index 110a780f..73c951f5 100644 --- a/rc-service/rc-service-other/other-infrastructure/src/main/java/com/red/circle/other/infra/database/mongo/document/RocketHistoryDocument.java +++ b/rc-service/rc-service-other/other-infrastructure/src/main/java/com/red/circle/other/infra/database/mongo/document/RocketHistoryDocument.java @@ -2,6 +2,7 @@ package com.red.circle.other.infra.database.mongo.document; import lombok.Data; import org.springframework.data.annotation.Id; +import org.springframework.data.mongodb.core.index.CompoundIndex; import org.springframework.data.mongodb.core.mapping.Document; import org.springframework.data.mongodb.core.mapping.Field; @@ -16,6 +17,7 @@ import java.util.List; */ @Data @Document(collection = "rocket_launch_history") +@CompoundIndex(name = "idx_room_date_launch", def = "{'roomId': 1, 'date': 1, 'launchTime': -1}") public class RocketHistoryDocument { @Id