add some indices to increase performance

这个提交包含在:
Sven Czarnian
2022-10-23 14:58:04 +02:00
父节点 0535873da0
当前提交 ad843e4706
共有 3 个文件被更改,包括 5 次插入1 次删除

查看文件

@@ -12,6 +12,7 @@ export type AirportDocument = Airport & Document;
export class Airport { export class Airport {
@Prop({ @Prop({
required: true, required: true,
index: true,
type: String, type: String,
}) })
icao: string; icao: string;

查看文件

@@ -7,12 +7,14 @@ export type LogEntryDocument = LogEntry & Document;
export class LogEntry { export class LogEntry {
@Prop({ @Prop({
required: true, required: true,
index: true,
type: String, type: String,
}) })
component: string; component: string;
@Prop({ @Prop({
required: true, required: true,
index: true,
enum: ['DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL'], enum: ['DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL'],
type: String, type: String,
}) })

查看文件

@@ -10,8 +10,9 @@ export type PerformanceDocument = Performance & Document;
@Schema() @Schema()
export class Performance { export class Performance {
@Prop({ @Prop({
type: String,
required: true, required: true,
index: true,
type: String,
}) })
icaoCode: string; icaoCode: string;