Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: DBI speed up needed on MySQL

by JamesNC (Chaplain)
on May 08, 2005 at 12:54 UTC ( #454997=note: print w/ replies, xml ) Need Help??


in reply to DBI speed up needed on MySQL

Yes, I would definitely use a different index. You need an index which has both columns. Try one of these. The second should be faster, but you are only allowed to have one clustered index per table. Use the clustered option on the index you use the most. Do one of these from mysql command line interface.

CREATE INDEX exp_update ON campaigns ( mw_export, last_update ) --or this CREATE clustered INDEX cl_exp_update ON campaigns ( mw_export, last_up +date )

JamesNC


Comment on Re: DBI speed up needed on MySQL
Download Code
Re^2: DBI speed up needed on MySQL
by jacques (Priest) on May 09, 2005 at 00:31 UTC
    Thanks. I know that I should be using indexes and I was surprised that the ones I created didn't help out much.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (8)
As of 2014-12-22 07:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (112 votes), past polls