diff options
author | Richard Steinmetz <richard@steinmetz.cloud> | 2025-04-29 16:34:19 +0200 |
---|---|---|
committer | Richard Steinmetz <richard@steinmetz.cloud> | 2025-04-29 16:34:19 +0200 |
commit | 33a8e2226cb9aa757d028e10ecba87c67ef7684b (patch) | |
tree | 558f05e8ac806a84343d3d3ef3e82ddb8a3eb841 | |
parent | e7fbfa61e5572e8a469ed4afd8486d22a6c85125 (diff) | |
download | nextcloud-server-33a8e2226cb9aa757d028e10ecba87c67ef7684b.tar.gz nextcloud-server-33a8e2226cb9aa757d028e10ecba87c67ef7684b.zip |
perf(caldav): increase chunk size in RemoveOrphanEventsAndContacts repair stepperf/caldav/bigger-chunks-orphan-repair
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
-rw-r--r-- | apps/dav/lib/Migration/RemoveOrphanEventsAndContacts.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/dav/lib/Migration/RemoveOrphanEventsAndContacts.php b/apps/dav/lib/Migration/RemoveOrphanEventsAndContacts.php index ead2645779b..601103f7a24 100644 --- a/apps/dav/lib/Migration/RemoveOrphanEventsAndContacts.php +++ b/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(); |