When I execute a simple statement in phpMyAdmin like
SELECT *
FROM a
where \"a\" has 500\'000 rows, it gives me a time of a few milliseconds on
phpMyAdmin automatically appends a LIMIT
clause to your statement, so it has a smaller result set to return thus making it faster.
Even if you need all 300,000 or 500,000 results then you should really use a LIMIT
. Multiple smaller queries does not necessarily mean same execution time as a single big query.