laziness, impatience, and hubris | |
PerlMonks |
Re^2: When to use forks, when to use threads ...?by Krambambuli (Curate) |
on Sep 05, 2008 at 07:42 UTC ( [id://709191]=note: print w/replies, xml ) | Need Help?? |
For a mass insertion into a database I would recommend neither approach. Instead I would suggest learning what native tools your database has for mass inserts. I would then use them. ...If the table you're inserting into has indexes I would strongly suggest dropping all indexes,... That doesn't work as needed, unfortunately. It's not a simple insertion, but rather an insert-or-update-if-already-there process. So I cannot disable indexes either. Parallelizing the process in some way seemed the most appealing alternative to speed up things. Krambambuli ---
In Section
Seekers of Perl Wisdom
|
|