Webforms are very slow with revisions and drafts enabled.

Created on 29 August 2019, about 5 years ago
Updated 22 November 2023, 10 months ago

I'm working on a large webform and after enabling drafts I noticed the performance got very slow. I thought it was an issue with the core webform module, but after doing some testing and simply uninstalling this module the performance issue was gone.

Here's the issue I made on the core webform module https://www.drupal.org/project/webform/issues/3077693 β†’ .

Do you have any idea why this module would cause a slow down, specifically when drafts are enabled? I'd love to help track it down so we can utilize revisions.

πŸ“Œ Task
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States rd.michael

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.

  • πŸ‡¨πŸ‡¦Canada joseph.olstad

    We found a workaround for this.

    We uninstalled config_entity_revisions

    and then installed the config_revision module instead.

    Then from the administrative interface /admin/config/development/config-revision provided by this config_revision module
    put a checkbox beside 'webform' and save.

    If you are using Drupal 10.1.5 or higher you will not require a core patch to use this module.

  • πŸ‡¦πŸ‡ΊAustralia Nigel Cunningham Geelong

    Oh, I'm sorry - I forgot all about trying your form.

    I'll seek to do so and hopefully the work around won't be needed.

  • πŸ‡¦πŸ‡ΊAustralia Nigel Cunningham Geelong

    Hi Joseph.

    I'm trying to reproduce this now, without success so far, using your sample form. Any further hints you might be able to provide would be appreciated. I'm using the dev version of config entity revisions.

  • πŸ‡¨πŸ‡¦Canada joseph.olstad

    Hi Nigel,

    It's been a while but from memory it occurs after having made a "few revisions" of a "fairly complex webform" and when the "save draft" option on a webform is.

    I've provided a fairly complex example webform, if "save draft" is enabled , and config_entity_revisions is enabled, make some revisions of that webform then make some drafts. You'll see the slowness when you try to recuperate your draft form or when saving the draft, one of the two.

    If save draft is option is disabled, the performance issue goes away.

    However if not using config entity revisions, deleting all revisions, save draft works.

  • πŸ‡¦πŸ‡ΊAustralia Nigel Cunningham Geelong

    Thanks. I'll give it another go.

Production build 0.71.5 2024