Skip to content

Commit f4eff74

Browse files
Merge pull request #45306 from nextcloud/perf/systemtags-object-mapping-objectid-index
perf(systemtags): Add index for systemtags_object_mappings.objectid
2 parents e7eea97 + 9f23b43 commit f4eff74

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)