MySQL Forums
Forum List  »  Optimizer & Parser

Need help :-(
Posted by: Shane Zammit
Date: May 18, 2009 04:36PM

Hi,

I have the below query which is talking around 180sec to run... Can anyone suggest a change to make it run quicker?

# Time: 090518 13:31:14
# User@Host: ez @ localhost []
# Query_time: 181 Lock_time: 0 Rows_sent: 5 Rows_examined: 2540
SELECT DISTINCT `Tweets`.* FROM `TweetFollowers`, `Tweets` WHERE
((`Tweets`.`Poster` = `TweetFollowers`.`MemberID` AND
`TweetFollowers`.`Follower` = '2554') OR `Tweets`.`Poster` =
'2554') AND `Post` != '' ORDER BY `Posted` DESC LIMIT 5;

Thanks is advance....

Options: ReplyQuote


Subject
Views
Written By
Posted
Need help :-(
3030
May 18, 2009 04:36PM
2196
May 19, 2009 11:24PM


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.