Skip to content

Commit

Permalink
Merge pull request #45306 from nextcloud/perf/systemtags-object-mappi…
Browse files Browse the repository at this point in the history
…ng-objectid-index

perf(systemtags): Add index for systemtags_object_mappings.objectid
  • Loading branch information
ChristophWurst authored Jul 31, 2024
2 parents e7eea97 + 9f23b43 commit f4eff74
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 @@ -224,6 +224,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 f4eff74

Please sign in to comment.