I have a large table (200+m records) and I am running the following query:
INSERT INTO queue_noindex (DomainID,ProcessFlag)
SELECT DomainID,ProcessFlag
FROM central_store
WHERE BatchInstall = 2 LIMIT 6000000,250000000
I've run it a number of times now and each time I get the following when I run:
Show table status = Aprox. 52m rows
I know there is at least 100m records in central_store that are applicable and the query is still running ... and at 14167 seconds. When it finished earlier there were no records actually in the queue_noindex table, so it clearly didn't finish and genuinely insert the records it said it had!
Are there logs or something I could be looking at as to why this query (which is quite simple and there is an index on BatchInstall) keeps failing?