in reply to how to speed up querys to mysql
Helo, i have one problem, i have two arrays and want to check its values in mysql databases. i wrote this script, but when here is 30000 queries
[SNIP]foreach $a1(@a1) { foreach $b1(@b1) { $sth = $dbh->prepare( "SELECT a1.ID FROM a1, a1_b1, b1 WH
In addition to the excellent answers you got thus far, I have a pair of remarks that nobody seems to have done yet:
I recommed you to do the same. They instruct perl to restrict your freedom in a way that will help you to avoid common programming mistakes, hence implicitly to give you all the help it can. Of course you will then have to declare your (lexical) variables with my.use strict; use warnings;
|
|---|