diff --git a/shared/db/ComBattleTeam.ts b/shared/db/ComBattleTeam.ts index a4f1ba072..1df14626a 100644 --- a/shared/db/ComBattleTeam.ts +++ b/shared/db/ComBattleTeam.ts @@ -154,6 +154,7 @@ export class BossHp { @index({ roleIds: 1 }) @index({ capId: 1 }) @index({ status: 1, blueprtId: 1, pub: 1}) +@index({ status: 1, inviteTarget: 1}) export default class ComBattleTeam extends BaseModel { // 队伍唯一编号 diff --git a/shared/db/GVGVestigeRec.ts b/shared/db/GVGVestigeRec.ts index 7a51653c1..d35e55482 100644 --- a/shared/db/GVGVestigeRec.ts +++ b/shared/db/GVGVestigeRec.ts @@ -18,6 +18,8 @@ class LeagueGood { @index({ battleCode: 1 }) @index({ groupKey: 1, vestigeId: 1, rank: 1 }) +@index({ attackRoleId: 1 }) +@index({ defenseRoleId: 1 }) export default class GVGVestigeRec extends BaseModel { @prop({ required: true }) diff --git a/shared/db/GuildRec.ts b/shared/db/GuildRec.ts index e50d5d988..256485a83 100644 --- a/shared/db/GuildRec.ts +++ b/shared/db/GuildRec.ts @@ -5,6 +5,7 @@ import { GUILD_REC_TYPE } from '../consts'; import { nowSeconds } from '../pubUtils/timeUtil'; @index({ guildCode: 1 }) +@index({ recCode: 1 }) export default class GuildRec extends BaseModel { @prop({ required: true }) diff --git a/shared/db/PrivateMessage.ts b/shared/db/PrivateMessage.ts index b69adc978..cfcefd0d8 100644 --- a/shared/db/PrivateMessage.ts +++ b/shared/db/PrivateMessage.ts @@ -8,6 +8,7 @@ import { MSG_STATUS } from '../consts'; @modelOptions({ schemaOptions: { id: false } }) @index({ roomId: 1, seqId: -1 }) @index({ msgId: 1 }) +@index({ msgCode: 1 }) export default class PrivateMessage extends BaseModel { @prop({ required: true, default: '' }) roomId: string; // 频道唯一 Id,由 roleId 和 targetRoleId 排序后拼接