MySQL Forums
Forum List  »  General

Re: Query optimization question
Posted by: Rick James
Date: March 02, 2009 09:31PM

/, not \

-> WHERE userstable.companyid = '1234'
-> AND hourstable.paid = 0
-> AND userstable.status = 1
-> AND hourstable.timer = 1;

An INDEX (paid, timer) might help on hourstable, but I don't see those fields???
What is userstable like?
INDEX(companyid, status) might help.

Options: ReplyQuote


Subject
Written By
Posted
February 27, 2009 04:34PM
February 28, 2009 06:36AM
February 28, 2009 04:03PM
Re: Query optimization question
March 02, 2009 09:31PM


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.