Batch Apex articles
6 articles · Batch class structure, scope sizing and the failures that stall a job.
Stateful Batch Apex: Should You Cache Picklist Values?
Holding metadata like picklist values in stateful variables looks like a free performance win, and it brings...
Custom CSV Import Architecture for Salesforce Developers
A pattern for parsing, validating and mapping CSV data onto multiple Salesforce objects without blowing the heap or the...
Apex Test Class: Catching Thrown Exceptions in Async Batch Jobs
Why try/catch silently fails inside Batch Apex test classes, and the direct-invocation pattern that makes async...
How to Stay Under Asynchronous Apex Limits in Salesforce
Ever hit a 'Too many future calls' error right before a big deployment? It happens to the best of us, and it usually...
Apex vs Flow - When to Use Code Over Salesforce Automation
We've all heard the 'Flow First' mantra, but sometimes you want the power of code. Here is where I stop building Flows...
Asynchronous Apex in Salesforce - When to Use Each Type
Ever hit a CPU limit while writing a trigger? Asynchronous Apex moves the heavy work into the background so your users...