From: Christoph Wurst Date: Tue, 14 May 2024 10:12:29 +0000 (+0200) Subject: perf(systemtags): Add index for systemtags_object_mappings.objectid X-Git-Tag: v30.0.0beta3~36^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9f23b43e8be76a811555ff56b790cd308d3aba32;p=nextcloud-server.git perf(systemtags): Add index for systemtags_object_mappings.objectid Signed-off-by: Christoph Wurst --- diff --git a/core/Application.php b/core/Application.php index bc8e069ce6b..d2bcb18bafb 100644 --- a/core/Application.php +++ b/core/Application.php @@ -224,6 +224,12 @@ class Application extends App { 'systag_by_tagid', ['systemtagid', 'objecttype'] ); + + $event->addMissingIndex( + 'systemtag_object_mapping', + 'systag_by_objectid', + ['objectid'] + ); }); $eventDispatcher->addListener(AddMissingPrimaryKeyEvent::class, function (AddMissingPrimaryKeyEvent $event) {