Did you check the load on the database server? If it is high, adding multiple concurrent queries will probably slow it down even more.
Anyhow you should first answer the question where the real speed-bottleneck is. If you run a huge lot of queries one after another from your .sql file with lots of data being passed back and forth, it could be that the network is the limiting factor. Or it could be that the machine running your Perl-script is having memory-issues and has to swap memory to keep everything running (or rather, crawling).
You see, the limited speed can come from different causes and unless you search for the cause, it will be very much a gamble if you blindly pick one "solution" over another.
CountZero
"If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.