]> source.dussan.org Git - nextcloud-server.git/commitdiff
perf(systemtags): Add index for systemtags_object_mappings.objectid 45306/head
authorChristoph Wurst <christoph@winzerhof-wurst.at>
Tue, 14 May 2024 10:12:29 +0000 (12:12 +0200)
committerChristoph Wurst <ChristophWurst@users.noreply.github.com>
Tue, 30 Jul 2024 11:13:48 +0000 (13:13 +0200)
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
core/Application.php

index bc8e069ce6b1986a9aee87f8b4abc883c46e81d6..d2bcb18bafb3e17d6d5fc67b2fbbfb762c811992 100644 (file)
@@ -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) {