Browse Source
perf(caldav): increase chunk size in RemoveOrphanEventsAndContacts repair step
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
pull/52534/head
Richard Steinmetz
7 months ago
No known key found for this signature in database
GPG Key ID: 27137D9E7D273FB2
1 changed files with
1 additions and
1 deletions
-
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(); |
|
|
|
|