Skip to content

Commit

Permalink
Merge pull request #46905 from nextcloud/backport/45306/stable28
Browse files Browse the repository at this point in the history
[stable28] perf(systemtags): Add index for systemtags_object_mappings.objectid
  • Loading branch information
ChristophWurst authored Jul 31, 2024
2 parents 778c118 + 17b8173 commit 8dc28fd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions core/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,12 @@ public function __construct() {
'systag_by_tagid',
['systemtagid', 'objecttype']
);

$event->addMissingIndex(
'systemtag_object_mapping',
'systag_by_objectid',
['objectid']
);
});

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

0 comments on commit 8dc28fd

Please sign in to comment.