I would try to use the bulk load facility of MySQL instead of sending single INSERT statements. Usually, bulk load is much much faster than sending single INSERT statements. Maybe the INSERT DELAYED is already fast enough, alternatively, the LOAD DATA INFILE syntax is what I'd aim for.
All of this advice comes from https://dev.mysql.com/doc/refman/5.5/en/optimizing-myisam-bulk-data-loading.html and https://dev.mysql.com/doc/refman/5.6/en/optimizing-innodb-bulk-data-loading.html.
In reply to Re: How to optimise " csv into mysql " using TEXT:CSV_XS and DBD::Mysql
by Corion
in thread How to optimise " csv into mysql " using Text:CSV_XS and DBD::Mysql
by taiko
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |