in reply to Optimum method to perform data extraction in a table
Is this your entire program? Have you profiled it using something like Devel::NYTProf?
Martin