Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added the parameter and an example with pictures

...

This rule counts the number of 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.

...

Parameter

maxElements

By default the 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 (quite obvious) example shows 11 metadata elements:

Image Added

That will result in this code smell:

Image Added