summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorChristoph Wurst <ChristophWurst@users.noreply.github.com>2024-07-31 12:11:18 +0200
committerGitHub <noreply@github.com>2024-07-31 12:11:18 +0200
commit8dc28fd59d5d65abc14a63569187d7b5642f2e56 (patch)
tree29c88d505ef44f14cfde99b26693d74ea64a7fa7 /core
parent778c11837483767f0791619d18f1efae6b17553d (diff)
parent17b8173b103fe1ea6c9a6d0c6620fa29779949be (diff)
downloadnextcloud-server-8dc28fd59d5d65abc14a63569187d7b5642f2e56.tar.gz
nextcloud-server-8dc28fd59d5d65abc14a63569187d7b5642f2e56.zip
Merge pull request #46905 from nextcloud/backport/45306/stable28
[stable28] perf(systemtags): Add index for systemtags_object_mappings.objectid
Diffstat (limited to 'core')
-rw-r--r--core/Application.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/Application.php b/core/Application.php
index 89952d89520..abc6f22c6c6 100644
--- a/core/Application.php
+++ b/core/Application.php
@@ -260,6 +260,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) {