Skip to content

Matrix blocks causing slow saves and crashes on multi-site installs #9802

@turnstylerj

Description

@turnstylerj

Description

What appears to be similar issues have been closed in this and Neo's repositories:

It sounded like people were able to reproduce with Matrix fields, so I wanted to provide a more stripped-down test case with a fresh install of Craft CMS and no plugins.

Steps to reproduce

  1. Install Craft CMS
  2. Create several sites on the install (I did English, Spanish, Portuguese, and French)
  3. Create a Matrix field with several blocks (I did three blocks, each containing two plain text fields, all default options).
  4. Create a structure with all default options and assign the matrix field to its layout.

Results

Creating a new entry in this structure and timing my saves as I entered additional blocks, I clocked the following times:

4 blocks: 3 seconds
8 blocks: 5 seconds
12 blocks: 7 seconds
16 blocks: 8 seconds
20 blocks: 11 seconds
24 blocks: 14 seconds
28 blocks: 16 seconds

The current homepage of the real site we're working on has 93 fields across 21 Neo blocks, and entries are taking upwards of 30 seconds to save/often resulting in a 503 error on our development servers. Given I'm able to repro a 16-second save time on a fresh install with 28 matrix blocks, each containing 2 plain text fields, it feels like this is more likely a Craft issue.

Please let me know if there's any additional information I can provide from my local test site. This issue is really slowing down development on the current site we're working on.

Additional info

  • Craft version: 3.7.11
  • PHP version: 7.4.12
  • Database driver & version: MySQL 5.7.32
  • Plugins & versions: N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions