in reply to How to optimise " csv into mysql " using Text:CSV_XS and DBD::Mysql
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to optimise " csv into mysql " using TEXT:CSV_XS and DBD::Mysql
by taiko (Sexton) on Aug 06, 2015 at 09:15 UTC | |
by Corion (Patriarch) on Aug 06, 2015 at 09:25 UTC | |
by taiko (Sexton) on Aug 06, 2015 at 09:35 UTC |