添加索引:Role->roleName, SystemConfig->seasonNum
This commit is contained in:
@@ -97,6 +97,7 @@ export class Teraph {
|
|||||||
* 角色字段接口
|
* 角色字段接口
|
||||||
*/
|
*/
|
||||||
@index({ roleId: 1 })
|
@index({ roleId: 1 })
|
||||||
|
@index({ roleName: 1 })
|
||||||
@index({ serverId: 1, roleId: 1 })
|
@index({ serverId: 1, roleId: 1 })
|
||||||
@index({ towerLv: -1, towerUpTime: 1 })
|
@index({ towerLv: -1, towerUpTime: 1 })
|
||||||
// @index({ userInfo.uid: 1, serverId: 1 })
|
// @index({ userInfo.uid: 1, serverId: 1 })
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import { CounterModel } from './Counter';
|
|||||||
import { COUNTER } from '../consts';
|
import { COUNTER } from '../consts';
|
||||||
|
|
||||||
@index({ id: 1 })
|
@index({ id: 1 })
|
||||||
|
@index({ seasonNum: 1 })
|
||||||
export default class PVPConfig extends BaseModel {
|
export default class PVPConfig extends BaseModel {
|
||||||
@prop({ required: true, default: 1 })
|
@prop({ required: true, default: 1 })
|
||||||
id: number;
|
id: number;
|
||||||
|
|||||||
Reference in New Issue
Block a user