diff options
author | Julius Härtl <jus@bitgrid.net> | 2022-04-21 09:59:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-21 09:59:04 +0200 |
commit | f4135c72f505f13891e0b05e7e4f4d2d921462b0 (patch) | |
tree | d242ace298b2829c7eaa05430c05ee8c8f3f676d /core/Application.php | |
parent | 12ed5c9ff3e9dac25b43a1ad934a97a86037000b (diff) | |
parent | 7fbd93b2ad66a1ca83ef2a2778128bf2cda06caf (diff) | |
download | nextcloud-server-f4135c72f505f13891e0b05e7e4f4d2d921462b0.tar.gz nextcloud-server-f4135c72f505f13891e0b05e7e4f4d2d921462b0.zip |
Merge pull request #31047 from nextcloud/enh/preferences-index
Additional index on oc_preferences to make queries without a user filter faster
Diffstat (limited to 'core/Application.php')
-rw-r--r-- | core/Application.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/Application.php b/core/Application.php index 34932cab183..443585ebc79 100644 --- a/core/Application.php +++ b/core/Application.php @@ -218,6 +218,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'); + } + } } ); |