mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
perf(caldav): increase chunk size in RemoveOrphanEventsAndContacts repair step
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
This commit is contained in:
parent
e7fbfa61e5
commit
33a8e2226c
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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue