- Issue created by @kksandr
- Merge request !20Issue #3459092 by kksandr: Optimize the getMentionsFromEntity() method β (Open) created by Unnamed author
- Issue was unassigned.
- Status changed to Needs review
7 months ago 3:24pm 4 July 2024
Hi, the getMentionsFromEntity()
method iterates through all fields and retrieves their values on each update or insertion of the entity. This significantly impacts performance, especially if the entity has many computed fields, the fields perform expensive calculations, there's a massive update of entities, or all these factors are present simultaneously.
Save the entity and with the help of debugging you will see that all computed fields are computed.
I suggest getting values ββonly for fields whose item inherits the TextItemBase
class. This will eliminate the computing of all unnecessary fields. This will also prevent triggering on fields that may also have a valid format
property, but have a completely different purpose.
None.
None.
None.
Needs review
3.0
Code