add some indices to increase performance
This commit is contained in:
@@ -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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user