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 次删除

查看文件

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