You need to sign in to do that
Don't have an account?

Batch class vs dataloader
Hello,
Can someone tell me,
what's the difference or feature between Data Loader and apex batch class??
Why to use batch class when we are able to do it with dataloader settings (i.e migrating the data in batches)
Thanks in advance
Say like you want to take a weekly backup of the account object and store it on your desktop, then you can use data loader.
Batch Apex is meant for processing of bulk data within SFDC. It should be used when you have some logic that you want to apply on large data volumes within SFDC, but has nothing to do with an external environment.
Say like you want to send an email to all users who have not logged in in the past month, you can use batch apex (assuming your user volume is BIG).
All Answers
From the Data Loader Guide: Use the Data Loader when: You need to load 50,000 to 5,000,000 records. If you need to load more than 5,000,000 records, we recommend you work with a Salesforce.com partner.
Batch job can manipulate 50 million records. Custom code is way more flexible, but also more time consuming to write, debug, test. These blog posts do a good job of covering the limits:
http://blog.shivanathd.com/2013/01/how-to-write-batch-class-in.html
http://www.embracingthecloud.com/2011/01/23/UsingBatchApex.aspx
Say like you want to take a weekly backup of the account object and store it on your desktop, then you can use data loader.
Batch Apex is meant for processing of bulk data within SFDC. It should be used when you have some logic that you want to apply on large data volumes within SFDC, but has nothing to do with an external environment.
Say like you want to send an email to all users who have not logged in in the past month, you can use batch apex (assuming your user volume is BIG).