I am adding paragraphs from xml file programmatically but it is extremely slow. for example I'm basically creating paragraphs like this:
$row = ['field_title' => 'title', 'field_id' => 'id' ....]; $paragraph = \Drupal::entityTypeManager()->getStorage('paragraph')->create($row);
I have at least ten paragraphs for node and it is taking approximately 2-3 minutes to create for one paragraph.
What can be the problem?