Ouch, overkill
The first step is to understand just what the code is doing. If taiko doesn't understand what the code is doing, Devel::Profile won't help.
In this case taiko is connecting to an SQL database without explicitly disabling autocommit. This is where the slow down is occurring, as every time they call execute on the statement handler, it executes the statement then commits the change. I highly recommend they follow the advice given by Corion in this case, as using a bulk load tool will be even faster than disabling autocommit.
In reply to Re^2: How to optimise " csv into mysql " using TEXT:CSV_XS and DBD::Mysql
by SimonPratt
in thread How to optimise " csv into mysql " using Text:CSV_XS and DBD::Mysql
by taiko
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |