function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
user2 mkiuser2 mki 

The heap memory when using Ajax

When using Ajax, there is a possibility that you conflict in restriction with the heap size, but when how doing do, can a heap memory be opened?
sandeep@Salesforcesandeep@Salesforce
If you want to avoid hitting heap size limit then you may follow below guidelines 
1. Use of Transient variables.
2. you may use Limits.getHeapSize() & Limits.getLimitHeapSize() to check runtime if you are close to limit or not
3. Avoid multile loops and try to keep your optimized. 

Thanks
Sandeep Singhal
http://www.codespokes.com/