Try switching AutoCommit off and then use $dbh->commit() after say every 1000 inserts, adjusting the number to get the best result.
This node might help Loading bulk data into SQLite
In reply to Re^3: Perl script speed
by poj
in thread Perl script speed
by rr27
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |