Browse Source

perf(core): add index on name

Signed-off-by: Varun Patil <varunpatil@ucla.edu>
Varun Patil 1 month ago
parent
commit
5bb0a29339
1 changed files with 5 additions and 0 deletions
  1. 5 0
      core/Application.php

+ 5 - 0
core/Application.php

@@ -126,6 +126,11 @@ class Application extends App {
 				'fs_parent',
 				['parent']
 			);
+			$event->addMissingIndex(
+				'filecache',
+				'fs_name_hash',
+				['name']
+			);
 
 			$event->addMissingIndex(
 				'twofactor_providers',