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
Ankur SrivastavaAnkur Srivastava 

Batch Apex for data export

I have a requirement for exporting data of few objects before deployment. How effective is Batch Apex for this ? I need to automate this process for a large number of objects. Is it better to use Data loader CLI with Bulk Api or Batch Apex for this ?
sai firstsai first
Use DataLoader as you are only exporting the objects, you need to go for BatchApex when the custom logic is required .As of here there is nothing like that then you can go for the Data loader
Amit Chaudhary 8Amit Chaudhary 8
Batch Apex :- Is used if you want to perform some custom login on you data
Data Loader CLI:- you can use to take data extract.

Let us know if this will help you