anusha(salesforce developer)

Friday, 8 July 2016

whats the main use of @future annotation..


8.whats the main use of @future annotation..
Ans.@future annotation is used to bypass governor limits            true or false
False.
It is not bypassing governor limits.
If we do not use @future in our code the System will try to run the code on the DML event and it will be dynamic.
These dynamic over the web (cloud) operations have limits and a single user or a single system or a single Org cannot use up all the online resources, hence governor limits come into existence.
@future methods or code does not execute dynamically but it executes in the background and the user and system can wait till the large operation is performed.
@future methods have higher governor limits as per design

No comments:

Post a Comment