Skip to content

002_0002 - NumberOfAttributes

No more that 35 attributes in an entity

Normalize your datamodel. Split your object into multiple objects. If the attributes really belong to each other in a one-to-one relation, just draw a one-to-one relation between the objects.

Metadata

authors:
- Xiwen Cheng <x@cinaq.com>
category: Maintainability
input: .*/DomainModels\$DomainModel\.yaml
rulename: NumberOfAttributes
rulenumber: '002_0002'
scope: package
severity: MEDIUM

Description

The bigger the entities, the slower your application will become when handling the data. This is because Mendix is using SELECT * queries a lot and will retrieve a lot of unnecessary data.

Remediation

Normalize your datamodel. Split your object into multiple objects. If the attributes really belong to each other in a one-to-one relation, just draw a one-to-one relation between the objects.

Test cases

# No test file found