Merge pull request #45306 from nextcloud/perf/systemtags-object-mapping-objectid-index

perf(systemtags): Add index for systemtags_object_mappings.objectid
pull/40878/merge
Christoph Wurst 2024-07-31 11:08:07 +07:00 committed by GitHub
commit f4eff7442c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 0 deletions

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