Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.x]: Slow save times on entries with revisions enabled #11501

Closed
tekstrand opened this issue Jun 24, 2022 · 1 comment
Closed

[3.x]: Slow save times on entries with revisions enabled #11501

tekstrand opened this issue Jun 24, 2022 · 1 comment

Comments

@tekstrand
Copy link

What happened?

Description

We're seeing very slow entry save times when entry revisions are enabled for a section that has a Neo field in the field layout. Our field has 42 blocks, and some entries will use upwards of 200 total blocks. Save times range from 20-120+ seconds. Turning revisions off shortens the save time to under 10 seconds.

Steps to reproduce

  1. Create a neo field with some blocks
  2. Create a section, enable revisions, add the neo field to it
  3. Create an entry in your new section, add lots of blocks to this entry, and save it. Somewhere around 60-100 blocks for us (it will vary based on number of fields, type of field, in each block) we start seeing timeouts on our production servers at 60 seconds of execution time.
  4. Turn revisions off for the section
  5. Resave the entry and note the difference in save time

Expected behavior

Enabling revisions for entries should not dramatically impact save times

Actual behavior

Save times appear to be 15-30x when revisions are enabled

Craft CMS version

3.7.x

PHP version

7.4

Operating system and version

No response

Database type and version

mysql 8

Image driver and version

No response

Installed plugins and versions

@brandonkelly
Copy link
Member

We significantly improved revision performance in Craft 4 – see #10589. Unfortunately the change involved breaking changes under the hood, so the same improvements cannot be made to 3.x.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants