diff options
author | Richard Steinmetz <richard@steinmetz.cloud> | 2025-04-29 16:34:19 +0200 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2025-04-29 21:05:12 +0000 |
commit | 1b71425b96d2a0a8a7da62209e8d1a3c273e46e8 (patch) | |
tree | 61c7dddaa7938c796e37fa4b157793c3419a1f75 | |
parent | 1a04a036d0535a357640db506478b9e336c66056 (diff) | |
download | nextcloud-server-backport/52534/stable30.tar.gz nextcloud-server-backport/52534/stable30.zip |
perf(caldav): increase chunk size in RemoveOrphanEventsAndContacts repair stepbackport/52534/stable30
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 41ae4faf4c4..789cd70afc1 100644 --- a/apps/dav/lib/Migration/RemoveOrphanEventsAndContacts.php +++ b/apps/dav/lib/Migration/RemoveOrphanEventsAndContacts.php @@ -79,7 +79,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->execute(); |