Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^4: DBI speed up needed on MySQL

by bart (Canon)
on May 08, 2005 at 09:42 UTC ( #454990=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $sth = $dbh->prepare("SELECT * FROM sometable");
    my $colnames = $sth->{NAME};
    ...
        @rowhash{@$colnames} = @$rowref;
        ...
    }
    
  2. or download this
    my %colcolumn; @colcolumn{@$colnames} = 0 .. $#$colnames;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://454990]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (1)
As of 2021-10-22 03:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (85 votes). Check out past polls.

    Notices?