in reply to DBI or mysqlimport?

If you can get the data into a format mysql can understand, you can simply do
mysql < inputdata.sql
which has always been blindingly fast for me. I don't remember off the top of my head if mysqlimport does any optimizations, so as a previous poster said Just Try It. :-)