The module currently loads entities individually in several places, which results in the N+1 query problem. This leads to inefficient database access and can significantly degrade performance, especially when working with large sets of entities.
To resolve this, entity IDs should be collected first and then passed to the loadMultiple()
method. This allows all required entities to be loaded in a single query, after which they can be processed as needed.
Active
3.0
Code