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

perf(systemtags): Add index for systemtags_object_mappings.objectid
This commit is contained in:
Christoph Wurst 2024-07-31 11:08:07 +02:00 committed by GitHub
commit f4eff7442c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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) {