in reply to Improving SQL speed
Your title and question suggested to me a need for appropriate table indexing to improve database performance. But your code shows only a single INSERT on an unindexed table. An index slows down table INSERTs (but is often justifiable because of the needs of future queries on the data set). It is also faster than DROPping and rebuilding those indexes every time you do an INSERT, except for bulk INSERTs when that strategy can make sense.
If you are having some performance issues with this code, I doubt it is in the database interactions.
I'd suggest using Devel::NYTProf to start to get a handle on where the resources are being used. I'd guess that parsing your mp3 library is not a trivial task.
-- Hugh
if( $lal && $lol ) { $life++; }
if( $insurance->rationing() ) { $people->die(); }
if( $insurance->rationing() ) { $people->die(); }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Improving SQL speed
by Mad_Mac (Beadle) on Nov 02, 2009 at 19:02 UTC | |
by CountZero (Bishop) on Nov 03, 2009 at 06:59 UTC |
In Section
Seekers of Perl Wisdom