- 🇳🇿New Zealand quietone
This was a BugSmash bug bingo. It is an optimization and not a bug. I am changing to a task.
- last update
7 months ago 29,689 pass
Optimize entity reference autocomplete widget should load referencable entities as little as possible, instead of each time form element is rendered.
Currently \Drupal\Core\Field\Plugin\Field\FieldWidget\EntityReferenceAutocompleteWidget::formElement
is called for each field item, but calls $items->referencedEntities()
each time. This method loads referencable entities for all field items.
In cases for example where
Entity Reference Revisions →
are used, referencedEntities
actually loads revisions, which do not have a cache! (See
📌
ContentEntityStorageBase::loadRevision() should use the static and the persistent entity cache like ContentEntityStorageBase::load()
Needs work
), so page load time and database queries increase exponentially.
Needs work
11.0 🔥
It affects performance. It is often combined with the Needs profiling tag.
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
This was a BugSmash bug bingo. It is an optimization and not a bug. I am changing to a task.