Skip to content

Commit

Permalink
Doctrine : Optimize import with batch processing
Browse files Browse the repository at this point in the history
  • Loading branch information
Progi1984 committed Jan 17, 2024
1 parent 4fab4c3 commit 6c391b5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Service/ReportImporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,9 @@ private function insertExecutionSuite(Execution $execution, \stdClass $suite, st
foreach ($suite->suites as $suiteChildren) {
$this->insertExecutionSuite($execution, $suiteChildren, $dateFormat, $executionSuite->getId());
}
if (!$parentSuiteId) {
$this->entityManager->clear();
}
}

/**
Expand Down

0 comments on commit 6c391b5

Please sign in to comment.