aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Steinmetz <richard@steinmetz.cloud>2025-04-29 23:05:05 +0200
committerGitHub <noreply@github.com>2025-04-29 23:05:05 +0200
commit6f661deb75cc4ac975007c2f2c3280565ed15d3b (patch)
treef63b140b09921b1a6b5663d0ca272f0bc423392e
parentf26dc79480e75b0dc2f80c9dfc08fada0f6beb68 (diff)
parent33a8e2226cb9aa757d028e10ecba87c67ef7684b (diff)
downloadnextcloud-server-6f661deb75cc4ac975007c2f2c3280565ed15d3b.tar.gz
nextcloud-server-6f661deb75cc4ac975007c2f2c3280565ed15d3b.zip
Merge pull request #52534 from nextcloud/perf/caldav/bigger-chunks-orphan-repair
perf(caldav): increase chunk size in RemoveOrphanEventsAndContacts repair step
-rw-r--r--apps/dav/lib/Migration/RemoveOrphanEventsAndContacts.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/dav/lib/Migration/RemoveOrphanEventsAndContacts.php b/apps/dav/lib/Migration/RemoveOrphanEventsAndContacts.php
index ead2645779b..601103f7a24 100644
--- a/apps/dav/lib/Migration/RemoveOrphanEventsAndContacts.php
+++ b/apps/dav/lib/Migration/RemoveOrphanEventsAndContacts.php
@@ -77,7 +77,7 @@ class RemoveOrphanEventsAndContacts implements IRepairStep {
$qb->delete($childTable)
->where($qb->expr()->in('id', $qb->createParameter('ids')));
- $orphanItemsBatch = array_chunk($orphanItems, 200);
+ $orphanItemsBatch = array_chunk($orphanItems, 1000);
foreach ($orphanItemsBatch as $items) {
$qb->setParameter('ids', $items, IQueryBuilder::PARAM_INT_ARRAY);
$qb->executeStatement();