Salesforce Decode
Salesforcedecode
Apex questionsQuestion 143 of 179
ApexAdvancedDebuggingapexdebuggingcpu-time

Debug: "Apex CPU time limit exceeded" during a bulk update. How do you find the cause?

Scenario

Updating 200 Opportunities takes 12 seconds of CPU and fails.

Answer it out loud first

Serious prep means attempting before reading. Take two minutes to structure your answer, then compare.