diff options
author | Julius Härtl <jus@bitgrid.net> | 2022-02-07 09:55:39 +0100 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2022-04-19 12:37:36 +0200 |
commit | 7fbd93b2ad66a1ca83ef2a2778128bf2cda06caf (patch) | |
tree | 17fb8d130769954261661643c07a3ea46d0e2355 /core/Migrations | |
parent | cd95fce105fe5f0e71b1bcac7685464f936b9749 (diff) | |
download | nextcloud-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/Migrations')
-rw-r--r-- | core/Migrations/Version13000Date20170718121200.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/Migrations/Version13000Date20170718121200.php b/core/Migrations/Version13000Date20170718121200.php index 02864830b2c..3e14b4af47a 100644 --- a/core/Migrations/Version13000Date20170718121200.php +++ b/core/Migrations/Version13000Date20170718121200.php @@ -333,6 +333,7 @@ class Version13000Date20170718121200 extends SimpleMigrationStep { 'notnull' => false, ]); $table->setPrimaryKey(['userid', 'appid', 'configkey']); + $table->addIndex(['appid', 'configkey'], 'preferences_app_key'); } if (!$schema->hasTable('properties')) { |