The “or” Operator Should Not Be Used

Impact Area

Performance

Severity

Medium

Affected Element

Report

Rule ID #

SF-0137

Impact #

Selective filters generally work faster than more general ones, all else being equal. Try to make your filters as selective as you can.

Remediation #

Choose and rather than or for filter logic.

Time to fix #

30 min

References #

See the Salesforce documentation resource: Improve Report Performance > Best Practices

Was it helpful ?

THE AI CODE GOVERNANCE BRIEF

Sign up for new updates!