MySQL Forums
Forum List  »  Newbie

Re: Advice indexing new DB
Posted by: Don Rapp
Date: January 25, 2008 07:36AM

I would do an index both ways in case you are only working on one or the other criteria...

alter table logs
add key UserDate ( userid, date ),
add key DateUser ( date, userid );

Any other possible concerned searches, I would add in all at once here and just add extra "key" indexes here

Options: ReplyQuote


Subject
Written By
Posted
January 25, 2008 02:37AM
Re: Advice indexing new DB
January 25, 2008 07:36AM
January 30, 2008 02:39AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.