Skip to main content
Asynchronous methods in loops

Prevent the use of asynchronous Apex methods (@future) inside loops, to help your application cope with larger volumes of data properly.

Lorenzo Frattini avatar
Written by Lorenzo Frattini
Updated over 6 years ago

Rationale

Even though Apex  written within an asynchronous method gets its own independent set of higher  governor limits, the number of future methods that can be  invoked within a single Apex transaction is limited.  

Scope

  • Apex classes

See also

Did this answer your question?