Perl: the Markov chain saw | |
PerlMonks |
Re^4: Perl DBI to MySQL LOAD_FILEby Marshall (Canon) |
on Jan 05, 2017 at 03:46 UTC ( [id://1178975]=note: print w/replies, xml ) | Need Help?? |
Yes, doing the prepare once will increase performance quite a bit. Another thing that can make a HUGE difference in performance is running all of the updates (or insertions) as a single transaction. From one of my DB creation programs (million records). I like to make the "work" as a sub framed by BEGIN and COMMIT to make the transaction scope clear:
In Section
Seekers of Perl Wisdom
|
|