Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
perf(caldav): increase chunk size in RemoveOrphanEventsAndContacts re…
…pair step

Signed-off-by: Richard Steinmetz <[email protected]>
  • Loading branch information
st3iny committed Apr 29, 2025
commit 33a8e2226cb9aa757d028e10ecba87c67ef7684b
2 changes: 1 addition & 1 deletion apps/dav/lib/Migration/RemoveOrphanEventsAndContacts.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ protected function removeOrphanChildren($childTable, $parentTable, $parentId): i
$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();
Expand Down
Loading