aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorChristoph Wurst <ChristophWurst@users.noreply.github.com>2024-07-31 11:08:07 +0200
committerGitHub <noreply@github.com>2024-07-31 11:08:07 +0200
commitf4eff7442cf695b2edcd10503486ce6e8ecfb0e8 (patch)
treee8fb6c2811724d2babe9ae69777d627cb23a0a28 /core
parente7eea9791c7161297a2e4863e6418d1bf73a4a6c (diff)
parent9f23b43e8be76a811555ff56b790cd308d3aba32 (diff)
downloadnextcloud-server-f4eff7442cf695b2edcd10503486ce6e8ecfb0e8.tar.gz
nextcloud-server-f4eff7442cf695b2edcd10503486ce6e8ecfb0e8.zip
Merge pull request #45306 from nextcloud/perf/systemtags-object-mapping-objectid-index
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 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) {