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
Issue fork meta_entity-3594355
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
Comment #3
herved commented