ACR Rules

⌘K
  1. Home
  2. Docs
  3. ACR Rules
  4. Performance (29)
  5. Entity should have a maximum of N reference set associations

Entity should have a maximum of N reference set associations

Introduced in version: 1.3 (29 Jan 2020)

Reference set associations are always retrieved when retrieving the parent object. This can be bad for performance especially if there are a lot of referred objects. Note that this only applies to persisted entities, for non-persisted entities this data is stored in memory and does not need to be retrieved from the database.

It is possible to configure the maximum number of allowed reference set associations. If set to 0 all reference set associations will be considered violations.

Noncompliant example: