I wanted to ask how it would be best to proceed in the case that I will explain below:
I enter more than 200,000 rows in a mysql database via php, I take the lines from a csv file, my question is as follows:
I should parse the csv file and as I read I insert the rows, or should I parse the file, forfeit all in an array and then using a foreach insert rows in the database.
I ask this because the inclusion of the data in the database is to be really slow. The table is an InnoDB.
I hope I was clear.
N.B. I can not make a "LOAD DATA LOCAL INFILE" because fields in the .csv file have been mapped previously.
Thank you