Categories
CMS Drupal Mastering Development

Node save slow with a field containing lots of paragraphs

I have a node that has a Paragraph field. It has around 80 Paragraphs referenced to it. When I save the node programmatically it’s very slow. It seems like the slow down is happening in the preSave() of the Paragraph field. I’m wondering if every referenced Paragraph is being loaded when the node is being saved? And if so is this normal functionality?

Could it just be bad design by myself that I created a node that has a field with 80+ Paragraphs referenced to it? Or is it legitimate to do it this way?

I should add that the node uses revisions.

Leave a Reply

Your email address will not be published. Required fields are marked *