add some indices to increase performance

This commit is contained in:
Sven Czarnian
2022-10-23 14:58:04 +02:00
parent 0535873da0
commit ad843e4706
3 changed files with 5 additions and 1 deletions

View File

@@ -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,
})