summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-10-13 01:17:23 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-10-13 01:17:23 +0900
commitb1655740dfb5b3870ebd9950350aa51d4ec283f5 (patch)
tree215d45196032f9723b41fed2a327636e38245caf /src
parent10.11.0 (diff)
downloadsharkey-b1655740dfb5b3870ebd9950350aa51d4ec283f5.tar.gz
sharkey-b1655740dfb5b3870ebd9950350aa51d4ec283f5.tar.bz2
sharkey-b1655740dfb5b3870ebd9950350aa51d4ec283f5.zip
Improve perforance
Diffstat (limited to 'src')
-rw-r--r--src/models/drive-file.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/models/drive-file.ts b/src/models/drive-file.ts
index 4b87b26a8c..fad6a3ef70 100644
--- a/src/models/drive-file.ts
+++ b/src/models/drive-file.ts
@@ -12,6 +12,7 @@ const DriveFile = monkDb.get<IDriveFile>('driveFiles.files');
DriveFile.createIndex('md5');
DriveFile.createIndex('metadata.uri');
DriveFile.createIndex('metadata.userId');
+DriveFile.createIndex('metadata.folderId');
export default DriveFile;
export const DriveFileChunk = monkDb.get('driveFiles.chunks');