|
|
| There's more than one way to do things | |
| PerlMonks |
Re: dbi questionby FitTrend (Pilgrim) |
| on Mar 04, 2005 at 20:02 UTC ( #436726=note: print w/ replies, xml ) | Need Help?? |
|
The only comment I would add on this is that what you will do may slow your program down. I mean if you execute a query inside a loop that has say 100,000 records, you'll be executing a query 100,000 time inside that loop. If the second query will be referencing the same index in a table, I would recommend creating a hash for the entire second dbi execute prior to executing the first query and performing the loop. This way, you're simply reference the hash for the value instead of performing all those queries. This may not work for what you need, but I thought it would be worth noting. example:
Hope this helps.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||