diff options
author | Robin Appelman <robin@icewind.nl> | 2020-09-22 16:15:34 +0300 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2020-09-22 16:15:34 +0300 |
commit | 634c051be6a4ec7d3b6b2b9c825ec484c9e76a22 (patch) | |
tree | 0fd02aff7f897198f88ad861cf8bb7826056899f /core/Application.php | |
parent | 48961823f716ef096c180980b6f9d0c7c22dace3 (diff) |
add size index for filecache
improves performance of #23004
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'core/Application.php')
-rw-r--r-- | core/Application.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/Application.php b/core/Application.php index a8f78241bb6..2e2579f094e 100644 --- a/core/Application.php +++ b/core/Application.php @@ -103,6 +103,10 @@ class Application extends App { if (!$table->hasIndex('fs_mtime')) { $subject->addHintForMissingSubject($table->getName(), 'fs_mtime'); } + + if (!$table->hasIndex('fs_size')) { + $subject->addHintForMissingSubject($table->getName(), 'fs_size'); + } } if ($schema->hasTable('twofactor_providers')) { |