adspace


How to reduce Apex heap size?

Answer Posted / Vivek Narain Singh

To reduce Apex heap size, you can optimize your code by following best practices such as minimizing the number of DML operations, using collections instead of loops, using SOQL efficiently, avoiding unnecessary querying, and limiting recursion. Additionally, you can use methods like `Database.Stateful` or `Database.Batchable` to manage large data sets in a more efficient way.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What were you doing before sfdc development?

522


What is workflow rule and workflow actions? : salesforce workflows and approval process

574