Explanation
This rule counts the number of custom metadata elements in one aggregate and reports back an issue when the configured maximum number of metadata elements is exceeded. It is recommended for performance issues, to keep the number of metadata elements in the aggregates below this maximum, otherwise this could cause performance issues in your application.
We estimate that resolving this issue will on average take 30 minutes.
Parameter
maxElements | By default the custom metadata elements in the aggregate rule applies a maximum of ten. By changing this parameter, the maximum threshold value can be increased or decreased. Default Value: 10 |
Possible improvement
Try to use only metadata in your aggregates that are really necessary.
Example
This example shows an aggregate with 11 custom metadata elements, that is 1 more than the maximum threshold value:
That will result in this code smell: