Apex questionsQuestion 67 of 179
ApexAdvancedbatchperformanceldv
Tune batch Apex scope size when processing 5 million Opportunity records nightly
Scenario
Territory realignment batch on 5M Opportunities times out in execute method with scope 200 due to heavy per-record SOQL and CPU-intensive territory logic.
Answer it out loud first
Serious prep means attempting before reading. Take two minutes to structure your answer, then compare.