Active
Project:
Paragraphs
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
23 Mar 2026 at 11:26 UTC
Updated:
21 Apr 2026 at 09:39 UTC
Jump to comment: Most recent
1. When saving a node with revisions and with 10+ paragraphs it is slow
1. Create a node with a lot of translation and has 10+ paragraphs in it.
2. Edit and save it
3. Saving it is slow, Sometimes leads you to 503 error
Comments
Comment #2
yashaswi18 commentedI took some time and checked the
ParagraphsWidget.phpcode and found a couple of things that are likely causing this.In
massageFormValues(), every time you save a node it loops through all paragraphs and runs heavy validation and form extraction on each one. With 10+ paragraphs and multiple translations, this fires a lot of database queries in one request, which is likely why you are also hitting the 503 timeout. I also noticed thatEntityFormDisplay::collectRenderDisplay()informElement()hits the database once per paragraph even when they are all the same type.Some solutions that might possibly help:
1. Cache the form display so it only loads once per paragraph type:
2. Skip validation for paragraphs that haven't changed:
In massageFormValues(), add a check before running the full validate() call3. Disable paragraph revisions if you don't need them