add some indices to increase performance

This commit is contained in:
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 {
@Prop({
required: true,
index: true,
type: String,
})
icao: string;

مشاهده پرونده

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

مشاهده پرونده

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