ACR Rules

  1. Home
  2. Docs
  3. ACR Rules
  4. Performance (29)
  5. Entity should have a maximum of N indices

Entity should have a maximum of N indices

The index tables must always be re-ordered/updated upon creating or changing an attribute that affects the index. Also, the database optimizer needs to pick the right index for a query, so multiple indices increase the chance the optimizer chooses the wrong one.

When set to 3 for example, this rule finds all entities with more than 3 indices and makes it easy to review if the indices are distinctive and useful.

Please note that, there is no maximum number of indices advised. It all depends on the amount of mutations to the entity and the available disk space.

Noncompliant example:

Additional resources on indices