Skip to content

Commit

Permalink
perf(systemtags): Add index for systemtags_object_mappings.objectid
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
  • Loading branch information
ChristophWurst committed Jul 30, 2024
1 parent 21f558b commit 9f23b43
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 9f23b43

Please sign in to comment.