Posts

Showing posts from November, 2021

Salesforce - Performance analysis of Apex

Image
   It was Diwali festival last weekend and a long weekend for me. During this break, I thought to write a blog on how we can analyse the performance of various Apex properties(Apex Methods, Queries, Workflow, Callouts, DML, validations, Triggers and Pages).  In your personal or work projects, you may come across the situation where apex code (mostly APIs callout) take time to execute which results in a delay, and eventually a bad user experience👎. Performance analysis is helpful in determining which Apex property is taking much time to load or execute, and accordingly you can make the application more efficient, and eventually improve the customer's interaction with application. There are many ways of analysing the Apex logs. Some people use VS Code extensions like 'Apex Log Analyzer'. But, I prefer to analyse directly in Developer Console. To keep the blog short and comprehensible, I'll create an  LWC application  and call the server side  Apex methods...