diff options
author | Christoph Wurst <ChristophWurst@users.noreply.github.com> | 2024-07-31 11:08:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-31 11:08:07 +0200 |
commit | f4eff7442cf695b2edcd10503486ce6e8ecfb0e8 (patch) | |
tree | e8fb6c2811724d2babe9ae69777d627cb23a0a28 /core | |
parent | e7eea9791c7161297a2e4863e6418d1bf73a4a6c (diff) | |
parent | 9f23b43e8be76a811555ff56b790cd308d3aba32 (diff) | |
download | nextcloud-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.php | 6 |
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) { |