I was requested to do a csv -> mysql insert on CSV Files .
They have 20k files of csv that contains from 100 to 100k lines of data .
So here is what i thought i can do :
On my machine i could join all files into 1 using a simple command :
copy *.csv combined.csv
and then process that file and then using php fgetcsv process that file and insert it in the DB .
Or
I could write a php program that read a directory process each file and when done transfer it into another folder .
Dedicated server is available
Good Pc with 8gb of memory available
What do you suggest ?