Nested multifields/composite fields performance issues

102 views
Skip to first unread message

Christoph Damm

unread,
Oct 17, 2023, 3:22:01 PM10/17/23
to Magnolia User Mailing List
Hello,

i have a 'bigger' app which consists of several tabs.
Within this app it takes significant long time to get into the details subapp for one entry.
Consistently like 8 to 10 seconds!

I have sort of narrowed it down to a nested multifield.

Definition (shortened) below.
When i remove the "images" multifield the app loads within 1 second.
I first thought this might be related to the images within, but if I remove only those, nothing changes.
Datawise imagine something like 15 -20 entries of "items" and with something like 5 images (well image entries) each.

Any ideas or tips how to improve or restructure data (if the nesting is an issue)?
Thanks!

Chris


detail:
    form:
$type: tabbedForm
tabs:
example:
  label: Example
  fields:
items:
  $type: jcrMultiField
  itemProvider:
$type: jcrChildNodeProvider
  field:
$type: compositeField
itemProvider:
  $type: jcrChildNodeProvider                  
properties:
  code:
$type: textField
required: true
  theme:
$type: textField
  description:
required: true
$type: richTextField                    
  image:
$type: damLinkField
  imageAlt:
$type: textField
i18n: true
  imageCaption:
$type: textField
i18n: true                  
  images:
$type: jcrMultiField
field:
  $type: compositeField
  properties:
image:
  $type: damLinkField
imageAlt:
  $type: textField
  i18n: true
imageCaption:
  $type: textField
  i18n: true
imageVideoUrl:
  $type: textField

Roman Kovařík

unread,
Oct 18, 2023, 1:44:12 AM10/18/23
to Magnolia User Mailing List, christo...@gmail.com

Christoph Damm

unread,
Oct 18, 2023, 4:42:09 AM10/18/23
to Roman Kovařík, Magnolia User Mailing List
Hi Roman,
thanks for your input.
I added for mutlifields (the top one and the images one) the following: (I hope that's the correct syntax, btu definitions app was ok);

orderHandler:
  class: info.magnolia.ui.editor.MultiFormDefinition$OrderHandlerDefinition$Noop

However, there is no change in speed.
Any other ideas maybe, or did i do something wrong?

Thanks,

Chris

Reply all
Reply to author
Forward
0 new messages