Possible performance improvement

Created on 21 June 2023, over 1 year ago
Updated 22 June 2023, over 1 year ago

Problem/Motivation

This code, uses ::loadMultiple() to load the entities. But as far as I can tell, only really uses ID and revision_ID from the objects.

https://git.drupalcode.org/project/entity_hierarchy/-/blob/3.x/src/Plugi...

If it could be converted to an EntityQuery, it would be significantly faster for entity saves; but I need someone with more knowledge about what it's doing to tell me it's feasible first.

Proposed resolution

If possible, use an entity query.

πŸ“Œ Task
Status

Fixed

Version

3.0

Component

Code (module)

Created by

πŸ‡¦πŸ‡ΊAustralia nterbogt

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024