Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

DBI speed up needed on MySQL

by jacques (Priest)
on May 08, 2005 at 03:30 UTC ( #454953=perlquestion: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $sth = $dbh->prepare("select * from campaigns where mw_export='yes'
    + and last_update > ?");
    $sth->execute(last_transfer{'campaigns'});
    ...
    print "It takes me over 30 minutes to print this!!!\n";
    
    }
    
  2. or download this
    alter table campaigns add index mw_export (mw_export);
    alter table campaigns add index last_update (last_update);
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://454953]
Approved by thor
Front-paged by cchampion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (10)
As of 2015-07-31 19:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (280 votes), past polls