mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
Revert "perf: Add partial index on configvalue of preferences table"
This reverts commit 0ccf84bb31.
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
e1ecf798d9
commit
1cfc8a2e03
2 changed files with 0 additions and 15 deletions
|
|
@ -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',
|
||||
|
|
|
|||
|
|
@ -31,7 +31,6 @@
|
|||
*/
|
||||
namespace OC\Core\Migrations;
|
||||
|
||||
use Doctrine\DBAL\Platforms\OraclePlatform;
|
||||
use Doctrine\DBAL\Platforms\PostgreSQL94Platform;
|
||||
use OCP\DB\ISchemaWrapper;
|
||||
use OCP\DB\Types;
|
||||
|
|
@ -333,9 +332,6 @@ class Version13000Date20170718121200 extends SimpleMigrationStep {
|
|||
]);
|
||||
$table->setPrimaryKey(['userid', 'appid', 'configkey']);
|
||||
$table->addIndex(['appid', 'configkey'], 'preferences_app_key');
|
||||
if (!$this->connection->getDatabasePlatform() instanceof OraclePlatform) {
|
||||
$table->addIndex(['configvalue'], 'preferences_configvalue', [], ['lengths' => [80]]);
|
||||
}
|
||||
}
|
||||
|
||||
if (!$schema->hasTable('properties')) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue