View Single Post
Old 06-22-2004, 05:32 PM  
CS-Jay
Confirmed User
 
CS-Jay's Avatar
 
Join Date: Oct 2003
Location: Command Central, West Palm Beach, Fl
Posts: 1,794
Quote:
Originally posted by phpslave
also note that if you key on two or more items example (id, name, date), you should select in that order as well in order to use these indexes correctly, or so i was told at mysql training, lol.

you can do a desc then your statement in the client to see how your using the indexes and in which order the preformance is best.
nice tip, as it makes sense as you move down the row.

I use EXPLAIN on the queries to see how good/bad they are.
__________________
I do stuff - aIm CS_Jay_D

Last edited by CS-Jay; 06-22-2004 at 05:34 PM..
CS-Jay is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote