Merge pull request #46905 from nextcloud/backport/45306/stable28

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

View file

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