Skip to content

Saving slow with many Replicator fields / big entries #9056

Open

Description

@jonassiewertsen

Bug description

We noticed that our time to save entries multiplied on big entries, with many replicator fields and lots of data.

It took about 1 - 2 seconds before the update. After updating, the time increased to 5 - 10 seconds.

The performance bottleneck comes with #6842

I saw the PR https://github.com/statamic/cms/pull/8712/files in the upcoming version 4.20.0, but in our case we reverted 6842 only as we don't use any Events and the performance is as expected again.

How to reproduce

  1. Create big entries with many replicator fields and lots of data.
  2. Press save

Logs

No response

Environment

Statamic 4.18.0

Installation

Other (please explain)

Antlers Parser

None

Additional details

No response

Activity

  1. jasonvarga commented on Nov 27, 2023

    @jasonvarga
    Member

    In your tests, was it the PHP side that is slower, or the JS?

  2. jonassiewertsen commented on Nov 27, 2023

    @jonassiewertsen
    ContributorAuthor

    The PHP Side.

    We did only measure on save itself, after an entry has been opened already.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions