[SalesForce] Batch Apex gets stuck in Queued status for a long time

We have an apex job that gets stuck in "Queued" status for a long time before going into "Processing".

This happens only in Sandbox environment (which was recently refreshed from Prod btw) and not in Prod.

Also as you can see there are no jobs which are queued and this particular job always used to get executed immediately even though it is Batch Apex i.e there is no need for this job to get stuck in "Queued" status for this long.

Can someone one throw me some ideas as to what could be wrong ?enter image description here

Best Answer

As you stated at the start this is only a issue in your Sandbox org. This is due to the sandbox org have a less powerful server to run against. According to this article (posted 2013) states production orgs run an 8 node clustered database tier, were as a sandbox is only a 4 node. This my have been increased by now. However if working in your sandbox you will have to be prepared for the speeds of the sandbox server.