+ Start a Discussion
rajjjjrajjjj 

Second Batch Job Taking more time to execute!!!!!!!!!!!!!

 

Hiya,

I have a question on Batch jobs.

 

Currently I was calling a Batch Job from Finish Method and I see the execution started immediately as soon as the first job finishes. And it took almost 4 to 5 minutes to start showing the SerialBatchApexRangeChunkHandler. Will it take that amount of time to process the second Batch or Will the Batch run Asynchronously!! Am I missing something? Please clarify.

 

To Understand more of what I am saying, see the time it shows when the batch executes. I profiled them from developer console.

 

10/25/2013 2:13:57AM Batch Apex
10/25/2013 2:14:05AM SerialBatchApexRangeChunkHandler
10/25/2013 2:14:05AM SerialBatchApexRangeChunkHandler
10/25/2013 2:14:13AM SerialBatchApexRangeChunkHandler
10/25/2013 2:14:16AM SerialBatchApexRangeChunkHandler
10/25/2013 2:14:21AM Batch Apex
10/25/2013 2:14:21AM Batch Apex
10/25/2013 2:19:03AM SerialBatchApexRangeChunkHandler
10/25/2013 2:19:03AM SerialBatchApexRangeChunkHandler
10/25/2013 2:19:05AM SerialBatchApexRangeChunkHandler
10/25/2013 2:19:07AM Batch Apex

 

It started at 2.14 and i took almost 5 min to show the next execution.

Did anybody faced this. Please post ur Ideas and Suggestions on how to make the batch execution in less time.

 

Thanks,

Raj.

 

 

testrest97testrest97

 

Yes,  batch apex runs asynchronously. You can't really tell when it executes, most of the time in my experience it executes instantly although sometimes it takes time. Honestly it just executes whenever resources are available.

rajjjjrajjjj
But the batch job started immediately and processing takes more time. Is it problem with my code or data!!!