perf(server): Add isSensitive index to improve query performance

This commit is contained in:
syuilo
2020-08-14 15:24:55 +09:00
parent ccda2181c1
commit 7c5ac2cbb4
2 changed files with 15 additions and 0 deletions

View File

@ -145,6 +145,7 @@ export class DriveFile {
@JoinColumn()
public folder: DriveFolder | null;
@Index()
@Column('boolean', {
default: false,
comment: 'Whether the DriveFile is NSFW.'