Try wrapping a bulk insert inside a transaction.
START TRANSACTION INSERT INTO `table_name` VALUES (data1), (data2), ..., (data1000); COMMIT
This can improve performance, I'm not sure if mySQL can partially perform bulk insertion though (if it cannot, then this is unlikely to help much)
Remember that even after 1.5 seconds for 30,000 records each ~ 1k in size you make a fix speed of 20 MB / s, you can actually limit the disk depending on the configuration of your equipment.
Then we advise you to research SSDs or change the Raid setting or get faster mechanical disks (there are many online articles about the pros and cons of using SQL db installed on SSDs).
source share