Skip to content

Entry with Neo field in section causing entries to take a long time to save #496

@zizther

Description

@zizther

Description

I have a section which contains a Neo field which contains 3 blocks, these blocks contain a number of fields including matrix, assets, redactor, plain text, dropdowns, lightswitches and Typed link field (version 2.0.0-rc.1).
Entries can have between 20-30 blocks, as well as other field content in the entry, these include asset, plain text, dropdowns, lightswitches and SEOmatic fields.

The entry takes about 5 seconds to load, however when saving the entry it can take between 10-15 seconds.

There were some performance issues with SEOmatic, which I've gone over with Andrew on, we have tested some optimisations coming in SEOmatic 3.4.5, these have improved the load and save time, but the remaining large chunk of time seems to be with Neo, I believe this to be the case as I have tested entries with SEOmatic, asset and redactor fields, these load and save very quickly. The only difference is the Neo field itself.

Another issue I have noticed, which maybe related; it takes 25 seconds to load and save a category, in the Categories section in the CP, which has an entries field pulling in related entries from the section containing the Neo field.
I have looked at the Yii debug logger, it shows there are 31,233 events and 3,861 DB calls, which seems ridiculous for loading relations.

I am not sure if this issue is due to how Craft pulls in relations (loading in all the Neo data), or maybe something new in 3.7 with the slide outs?
I wanted to touch base with you on this part of the issue first, incase there are some optimisations which could happen your end, but if you think this may be an optimisation for Craft, I can add an issue there.

Happy to help look into the issue and supply you with anything you need.

Other information

  • Neo version: 2.11.8
  • Craft version: 3.7.10

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