🐞 fix(mongo): 根据数据库慢日志更新索引

This commit is contained in:
luying
2023-03-27 14:35:24 +08:00
parent 9513848141
commit 1571611de8
6 changed files with 7 additions and 1 deletions

View File

@@ -5,6 +5,8 @@ import { LadderDefense, LadderOppPlayerInfo, LadderOppPlayerHeroInfo } from '../
import { genCode } from '../pubUtils/util';
@index({ battleCode: 1 })
@index({ roleId1: 1 })
@index({ roleId2: 1 })
export default class LadderMatchRec extends BaseModel {
@prop({ required: true })
battleCode: string; // 唯一code