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
poj
| [reply] [d/l] |
I would have expected that parsing a 34 MB file would not take very much time (at least not anything near 30 minutes) and that the DB inserts would likely be the big time consumers (but it is of course much better to check it with profiling tools). Well, davido has suggested some possible improvements here.
| [reply] |