Trying to determine best scenarios for using AggregateResult
e.g. Versus using a for loop gathering totals with += or similar syntax.
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It only takes a minute to sign up.
Sign up to join this communityTrying to determine best scenarios for using AggregateResult
e.g. Versus using a for loop gathering totals with += or similar syntax.
Use AggregateResult when possible. It always performs at least as well as manual loops. The more rows you need to process, the more you'll save in CPU time.