diff options
author | Julius Härtl <jus@bitgrid.net> | 2023-12-06 15:21:42 +0100 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2023-12-06 15:21:48 +0100 |
commit | 1cfc8a2e0396d97345d3e46260de2b2ce8f17326 (patch) | |
tree | d0b22a2957193673729e93d547eee710fb784f11 /core/Application.php | |
parent | e1ecf798d9ccce0b5d0c1b90d6cd93e22c2d9588 (diff) | |
download | nextcloud-server-1cfc8a2e0396d97345d3e46260de2b2ce8f17326.tar.gz nextcloud-server-1cfc8a2e0396d97345d3e46260de2b2ce8f17326.zip |
Revert "perf: Add partial index on configvalue of preferences table"
This reverts commit 0ccf84bb3174a0dba47938888d104db96dcacb1b.
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'core/Application.php')
-rw-r--r-- | core/Application.php | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/core/Application.php b/core/Application.php index b033ea70871..2ad8b9f2a30 100644 --- a/core/Application.php +++ b/core/Application.php @@ -44,7 +44,6 @@ use OC\Authentication\Listeners\UserDeletedWebAuthnCleanupListener; use OC\Authentication\Notifications\Notifier as AuthenticationNotifier; use OC\Core\Listener\BeforeTemplateRenderedListener; use OC\Core\Notification\CoreNotifier; -use OC\SystemConfig; use OC\TagManager; use OCP\AppFramework\App; use OCP\AppFramework\Http\Events\BeforeLoginTemplateRenderedEvent; @@ -82,7 +81,6 @@ class Application extends App { $notificationManager->registerNotifierService(AuthenticationNotifier::class); $eventDispatcher->addListener(AddMissingIndicesEvent::class, function (AddMissingIndicesEvent $event) { - $dbType = $this->getContainer()->get(SystemConfig::class)->getSystemValue('dbtype', 'sqlite'); $event->addMissingIndex( 'share', 'share_with_index', @@ -239,15 +237,6 @@ class Application extends App { ['appid', 'configkey'] ); - if ($dbType !== 'oci') { - $event->addMissingIndex( - 'preferences', - 'preferences_configvalue', - ['configvalue'], - ['lengths' => [80]] - ); - } - $event->addMissingIndex( 'mounts', 'mounts_class_index', |