![]() |
|
good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: A profiling surprise ...by Limbic~Region (Chancellor) |
on May 23, 2008 at 19:17 UTC ( #688196=note: print w/replies, xml ) | Need Help?? |
chexmix,
IO tends to be an overshadowing bottle neck. This is the nature of the beast. You may want to read: I disagree with the other monk in the thread that said to move as much as possible away from the DB. In general, you want to reduce the number of times that you ask the database to do work for you. The work that you do leave for the DB should be work that the DB is good at. For instance, don't sort your records in perl land if it makes sense to use an "order by" clause. You should also recognize that DBI is a pretty heavy API even though great work continue to goes into optimizations. The abstraction layer between you and the DB which makes you able to write programs faster also means the program runs slower. Without seeing the code nor data, it is hard to provide more than general advice. The code you indicated sounds like it would easily fit into <readmore> tags. If you want specific help - share the code. Cheers - L~R
In Section
Seekers of Perl Wisdom
|
|