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
Ram ParitalaRam Paritala 

I want to insert 500 records. for that how many times start method,execute method and finish method will process?

In a single process you can insert 500 records.

to test run the batch in dev console
Id batchJobId = Database.executeBatch(new RunThisBatch(), 500);

If the start method of the batch class returns a QueryLocator, the optional scope parameter of Database.executeBatchcan have a maximum value of 2,000. If set to a higher value, Salesforce chunks the records returned by the QueryLocator into smaller batches of up to 2,000 records. If the start method of the batch class returns an iterable, the scope parameter value has no upper limit. However, if you use a high number, you can run into other limits.

If no size is specified with the optional scope parameter of Database.executeBatch, Salesforce chunks the records returned by the start method into batches of 200. The system then passes each batch to the execute method. Apex governor limits are reset for each execution of execute.
Oleksandra Oleksandra 4Oleksandra Oleksandra 4
In case you want to upload up to 1000 records from CSV files with no relation between them and the current ones, use Data loader from Data2CRM

However, to keep the relations between records, I recommend using automated Salesforce migration to transfer all the data at once

Data2CRM is an official Salesforce partner that makes you able to switch business information regardless of the chosen platform's edition.