function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Muni12345Muni12345 

what is the exact difference between feature annotation and batch class? which case we would prefer feature and which case we would prefer batch class?

Hi, I have some confussion witth feature annotation and batch class,
what is the exact difference between feature annotation and batch class? which case we would prefer feature and which case we would prefer batch class? Please give me one real time scenario for where we can use exactly,

Thanks in advance
sandeep reddy 37sandeep reddy 37
when your trying to import records more then 5 millions record we use batch apex other wise dataloder 
but objects are two types 1)set up objects ex:user 2)non set up objects ex:account
when ure trying to dml on obth objects in a single transation it gets error so use future method
@future 
runs asynchronous dml for setup objects and non setup  objects
any dought 
I hope answer is saticfied