From 33a8e2226cb9aa757d028e10ecba87c67ef7684b Mon Sep 17 00:00:00 2001 From: Richard Steinmetz Date: Tue, 29 Apr 2025 16:34:19 +0200 Subject: [PATCH] perf(caldav): increase chunk size in RemoveOrphanEventsAndContacts repair step Signed-off-by: Richard Steinmetz --- apps/dav/lib/Migration/RemoveOrphanEventsAndContacts.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/dav/lib/Migration/RemoveOrphanEventsAndContacts.php b/apps/dav/lib/Migration/RemoveOrphanEventsAndContacts.php index ead2645779bb8..601103f7a24f7 100644 --- a/apps/dav/lib/Migration/RemoveOrphanEventsAndContacts.php +++ b/apps/dav/lib/Migration/RemoveOrphanEventsAndContacts.php @@ -77,7 +77,7 @@ protected function removeOrphanChildren($childTable, $parentTable, $parentId): i $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();