The default batch size is 200 and the maximum batch size is 2000. Database. executeBatch(new RunThisBatch(), 500); You can set batch size like above.