aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorDaniel <mail@danielkesselberg.de>2025-04-24 13:33:37 +0200
committerGitHub <noreply@github.com>2025-04-24 13:33:37 +0200
commitcc5ca5881638b51f9dc62bc21b09891aa22ea908 (patch)
tree0fddbbea3bac9d83031d8d6ea3433948a9f129e2 /apps
parent0051db7a438c5e8f85de16e2ddb6e7459f2e47b7 (diff)
parent8388646ae77a5ae7b53e5ce20958f156c32f87c4 (diff)
downloadnextcloud-server-cc5ca5881638b51f9dc62bc21b09891aa22ea908.tar.gz
nextcloud-server-cc5ca5881638b51f9dc62bc21b09891aa22ea908.zip
Merge pull request #51438 from nextcloud/perf/db/cards-properties-abid-name-value-idx
perf(db): Extend index on cards_properties to cover name and value
Diffstat (limited to 'apps')
-rw-r--r--apps/dav/lib/Migration/Version1004Date20170924124212.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/dav/lib/Migration/Version1004Date20170924124212.php b/apps/dav/lib/Migration/Version1004Date20170924124212.php
index a8b85469214..fbfec7e8e2d 100644
--- a/apps/dav/lib/Migration/Version1004Date20170924124212.php
+++ b/apps/dav/lib/Migration/Version1004Date20170924124212.php
@@ -28,7 +28,10 @@ class Version1004Date20170924124212 extends SimpleMigrationStep {
$table->addIndex(['addressbookid', 'uri'], 'cards_abiduri');
$table = $schema->getTable('cards_properties');
- $table->addIndex(['addressbookid'], 'cards_prop_abid');
+ // Removed later on
+ // $table->addIndex(['addressbookid'], 'cards_prop_abid');
+ // Added later on
+ $table->addIndex(['addressbookid', 'name', 'value'], 'cards_prop_abid_name_value', );
return $schema;
}