summaryrefslogtreecommitdiffstats
path: root/core/Application.php
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2022-02-07 09:55:39 +0100
committerJulius Härtl <jus@bitgrid.net>2022-04-19 12:37:36 +0200
commit7fbd93b2ad66a1ca83ef2a2778128bf2cda06caf (patch)
tree17fb8d130769954261661643c07a3ea46d0e2355 /core/Application.php
parentcd95fce105fe5f0e71b1bcac7685464f936b9749 (diff)
downloadnextcloud-server-7fbd93b2ad66a1ca83ef2a2778128bf2cda06caf.tar.gz
nextcloud-server-7fbd93b2ad66a1ca83ef2a2778128bf2cda06caf.zip
Additional index on oc_preferences to make sure that gettingh values without a user filter is fast
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'core/Application.php')
-rw-r--r--core/Application.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/Application.php b/core/Application.php
index 545588ab208..f5c39a20013 100644
--- a/core/Application.php
+++ b/core/Application.php
@@ -213,6 +213,13 @@ class Application extends App {
$subject->addHintForMissingSubject($table->getName(), 'direct_edit_timestamp');
}
}
+
+ if ($schema->hasTable('preferences')) {
+ $table = $schema->getTable('preferences');
+ if (!$table->hasIndex('preferences_app_key')) {
+ $subject->addHintForMissingSubject($table->getName(), 'preferences_app_key');
+ }
+ }
}
);