Merge pull request #52534 from nextcloud/perf/caldav/bigger-chunks-orphan-repair

perf(caldav): increase chunk size in RemoveOrphanEventsAndContacts repair step
pull/52551/head
Richard Steinmetz 2025-04-29 23:05:05 +07:00 committed by GitHub
commit 6f661deb75
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

@ -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();