perf(systemtags): Add index for systemtags_object_mappings.objectid

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
pull/46905/head
Christoph Wurst 2024-05-14 12:12:29 +07:00 committed by backportbot[bot]
parent 778c118374
commit 17b8173b10
1 changed files with 6 additions and 0 deletions

@ -260,6 +260,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) {