Apex triggers enable us to perform custom actions before or after changes to Salesforce records. This post will provide ways to Apex Trigger Code Optimization.
Architecture
SOQL optimization is important for application performance. This post will give ideas to make SOQL query selective so that optimizer will optimize soql.
- ApexArchitectureSalesforce
Optimize Apex Code by Metadata Caching
by Dhanik Lal Sahni January 20, 2022Most of the time we need metadata of entities and fields to make dynamic pages. This post will give detail on how to optimize apex code by metadata caching.
We use debug statements in Salesforce apex to debug code which can impact application performance. This post will help in understanding how to optimize code by disabling debug mode in production.
Loops are the primary source of CPU time consumption. If we have used nested loops then it will consume resources quickly. This post will help us in optimizing the loop in apex Code.
Salesforce apex is used to customize the Salesforce application. We should write proper code for customization for better performance. This post will help in optimizing Salesforce apex code.
- ApexArchitectureIntegrationSalesforce
Avoid Batch Apex and Use Queueable Class
by Dhanik Lal Sahni November 5, 2021Salesforce has four asynchronous apex which can handle long running job. This post will explain where to avoid batch apex and use Queueable Class instead.
- ApexArchitectureAWSintegration architectureSalesforce
Use Named Credential to Upload File in S3
by Dhanik Lal Sahni July 21, 2021We mostly have requirements to upload files in file storage servers like AWS S3 Server, Dropbox, Google Drive, etc. This post will help in uploading files to S3 Server. We…
- ApexArchitectureSalesforce
Generic Apex class for Calling External System
by Dhanik Lal Sahni July 13, 2021Integration with external system is very common requirement in Salesforce application. For this we can go for declarative external service or create apex class for each type of integration. Declarative…
- ArchitectureCertificationintegration architectureSalesforce
Using Salesforce Bulk API V2
by Dhanik Lal Sahni December 26, 2020Salesforce Bulk API is used primarily for data migration or data upload. Bulk API has two versions to support data upload. Bulk API V1.0 is custom REST API and V2.0…