aboutsummaryrefslogtreecommitdiffstats
path: root/core
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 /core
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 'core')
-rw-r--r--core/Application.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/core/Application.php b/core/Application.php
index a0dacb885ae..cc84f191330 100644
--- a/core/Application.php
+++ b/core/Application.php
@@ -147,12 +147,12 @@ class Application extends App {
true
);
- $event->addMissingIndex(
+ $event->replaceIndex(
'cards_properties',
- 'cards_prop_abid',
- ['addressbookid'],
- [],
- true
+ ['cards_prop_abid'],
+ 'cards_prop_abid_name_value',
+ ['addressbookid', 'name', 'value'],
+ false,
);
$event->addMissingIndex(