Skip to content

Commit 6f661de

Browse files
authored
Merge pull request #52534 from nextcloud/perf/caldav/bigger-chunks-orphan-repair
perf(caldav): increase chunk size in RemoveOrphanEventsAndContacts repair step
2 parents f26dc79 + 33a8e22 commit 6f661de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/dav/lib/Migration/RemoveOrphanEventsAndContacts.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ protected function removeOrphanChildren($childTable, $parentTable, $parentId): i
7777
$qb->delete($childTable)
7878
->where($qb->expr()->in('id', $qb->createParameter('ids')));
7979

80-
$orphanItemsBatch = array_chunk($orphanItems, 200);
80+
$orphanItemsBatch = array_chunk($orphanItems, 1000);
8181
foreach ($orphanItemsBatch as $items) {
8282
$qb->setParameter('ids', $items, IQueryBuilder::PARAM_INT_ARRAY);
8383
$qb->executeStatement();

0 commit comments

Comments
 (0)