3

I felt pretty smart about replacing that huge php database import script with a bash script loading the XML dump via MySQL's LOAD XML INFILE feature directly.

Why then does the php script only take 35 minutes for all the tables to import, whereas my script takes almost 2 fucking hours for that one table? We are talking an import of the ridiculous size of 70 MB. I don't get it. It's supposed to be fast.

Comments
  • 2
    Is the php script running in the same machine as the DB vs the bash script running on your local machine connecting to the server?
    That could explain it.
  • 0
    Converting the XML into CSV and loading that via load data infile is instant ...

    Why though?
Add Comment