In a nutshell, this query returns 890738 entries
SELECT *
FROM `cms_question_report`
WHERE `doa` < '2014-12-16 11:48:13'
And it does it that in around 2 seconds
After trying to cut it into 4 chunks, this query times out and produces an error
SELECT *
FROM `cms_question_report`
WHERE `doa` < '2014-12-16 11:48:13'
LIMIT 222684
Here's the error:
Error in Processing Request
Error code: 500
Error text: Internal Server Error
In my basic understanding shouldn't the second one run faster as it has a lower limit to the data it's fetching?
Another test:
SELECT *
FROM `cms_question_report`
WHERE `doa` < '2014-12-16 11:48:13'
LIMIT 2
That worked smoothly