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:24 +0000 |
commit | c22f215d02228f9f0057e05765f588245ae0b81c (patch) | |
tree | 146997faeb8d70636a8b89f7bf9e321e358a8b38 | |
parent | 014e9a97e248b4e90f903438d0a7980b1973c4f5 (diff) | |
download | nextcloud-server-backport/52534/stable31.tar.gz nextcloud-server-backport/52534/stable31.zip |
perf(caldav): increase chunk size in RemoveOrphanEventsAndContacts repair stepbackport/52534/stable31
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(); |