Skip to content

Commit 178e532

Browse files
Merge pull request #46906 from nextcloud/backport/45306/stable29
[stable29] perf(systemtags): Add index for systemtags_object_mappings.objectid
2 parents 84e05ac + 017370e commit 178e532

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

core/Application.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,12 @@ public function __construct() {
244244
'systag_by_tagid',
245245
['systemtagid', 'objecttype']
246246
);
247+
248+
$event->addMissingIndex(
249+
'systemtag_object_mapping',
250+
'systag_by_objectid',
251+
['objectid']
252+
);
247253
});
248254

249255
$eventDispatcher->addListener(AddMissingPrimaryKeyEvent::class, function (AddMissingPrimaryKeyEvent $event) {

0 commit comments

Comments
 (0)