1
0
forked from mirror/misskey

Improve perforance

This commit is contained in:
syuilo 2018-10-13 01:17:23 +09:00
parent 2f598b8fa1
commit b1655740df
No known key found for this signature in database
GPG Key ID: BDC4C49D06AB9D69

View File

@ -12,6 +12,7 @@ const DriveFile = monkDb.get<IDriveFile>('driveFiles.files');
DriveFile.createIndex('md5'); DriveFile.createIndex('md5');
DriveFile.createIndex('metadata.uri'); DriveFile.createIndex('metadata.uri');
DriveFile.createIndex('metadata.userId'); DriveFile.createIndex('metadata.userId');
DriveFile.createIndex('metadata.folderId');
export default DriveFile; export default DriveFile;
export const DriveFileChunk = monkDb.get('driveFiles.chunks'); export const DriveFileChunk = monkDb.get('driveFiles.chunks');