MySQL Forums
Forum List  »  Performance

Optimizing WHERE computations
Posted by: Craig Matthews
Date: May 30, 2005 11:48AM

Hi,

I know MySQL does not optimize computations in the WHERE clauses, e.g.,

SELECT * FROM news
WHERE time > SUBDATE(NOW(), INTERVAL 1 DAY);

In the above query, what can I do to optimize the response time?

Thanks!

Options: ReplyQuote


Subject
Views
Written By
Posted
Optimizing WHERE computations
2242
May 30, 2005 11:48AM
1624
June 02, 2005 06:41PM


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.