From 17b8173b103fe1ea6c9a6d0c6620fa29779949be Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Tue, 14 May 2024 12:12:29 +0200 Subject: [PATCH] perf(systemtags): Add index for systemtags_object_mappings.objectid Signed-off-by: Christoph Wurst --- core/Application.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/Application.php b/core/Application.php index 89952d89520dd..abc6f22c6c644 100644 --- a/core/Application.php +++ b/core/Application.php @@ -260,6 +260,12 @@ public function __construct() { 'systag_by_tagid', ['systemtagid', 'objecttype'] ); + + $event->addMissingIndex( + 'systemtag_object_mapping', + 'systag_by_objectid', + ['objectid'] + ); }); $eventDispatcher->addListener(AddMissingPrimaryKeyEvent::class, function (AddMissingPrimaryKeyEvent $event) {