We know that salesforce works on the concept of Multi-Tenancy, because of which there are many governor limits that are in place to use the salesforce server resources smoothly. To check the limitations of in apex class as per specific scenario, we can make use of standard limit class.
The Limits methods return the specific limit for the particular governor, such as
- the number of calls of a method
- the amount of heap size remaining.
- Query Limits
- Queueable Jobs
- Number of API calls
- Limits on DML statements