Improve Performance with nested paragraphs and Content Moderation

Created on 12 January 2022, over 2 years ago

Problem/Motivation

When attempting to save a node to a published transition using content moderation workflow and the node has a large amount of nested Paragraphs the save time will exceed the max execution time. This does not seem to happen if the node transition to a moderation state that is considered unpublished.

Steps to reproduce

  1. Enable content moderation and create a simple workflow: Unpublished, Draft, Published and assign it a node bundle.
  2. Assign this node bundle a set of Paragraph bundles that also have the ability to nest other Paragraphs in them.
  3. Create a node of this bundle type and create a large amount of Paragraphs (we have around 200 attached to a single node and some have children.)
  4. Transition the node to a Published moderation state. The save should fail because it exceeds the max execution time.(this is set to 15min)
πŸ› Bug report
Status

Active

Version

1.12

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States blu_regard

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States Coufu

    I'm experiencing a similar issue with Paragraphs. They seem to not be able to scale. I don't have as many as you (200 is a lot!), but I do have probably about 50. Then the problem is compounded with translations etc. Does anyone have any reading material around how to optimize sites that rely heavily on Paragraphs?

Production build 0.69.0 2024