Problem/Motivation

MetaEntity::loadOrCreateHelper can be called many times per page load, and hits the DB every time.
This could easily be avoided by calling MetaEntityRepository::getMetaEntitiesForEntity which does use static caching.

Steps to reproduce

(self explanatory)

Proposed resolution

Use MetaEntityRepository::getMetaEntitiesForEntity in MetaEntity::loadOrCreateHelper

Remaining tasks

?

User interface changes

None

API changes

None

Data model changes

None

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

herved created an issue. See original summary.

herved’s picture

Status: Active » Needs review