Skip to content

Commit 9f23b43

Browse files
perf(systemtags): Add index for systemtags_object_mappings.objectid
Signed-off-by: Christoph Wurst <[email protected]>
1 parent 21f558b commit 9f23b43

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

core/Application.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,12 @@ public function __construct() {
224224
'systag_by_tagid',
225225
['systemtagid', 'objecttype']
226226
);
227+
228+
$event->addMissingIndex(
229+
'systemtag_object_mapping',
230+
'systag_by_objectid',
231+
['objectid']
232+
);
227233
});
228234

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

0 commit comments

Comments
 (0)