Help optimizing a slow query entry
Posted by:
Patrick
Date: January 12, 2007 10:28AM
How would I go about making this query faster... its one of many entries in my slow query log. I was told that LEFT JOIN are bad
# Query_time: 3 Lock_time: 0 Rows_sent: 10 Rows_examined: 25639
SELECT * FROM rate_members LEFT JOIN rate_pictures ON i_user=m_id WHERE m_type=1 AND i_status=2 AND m_rating>0 AND m_ratingcnt >= 1 ORDER BY rand() DESC LIMIT 10;
Subject
Views
Written By
Posted
Help optimizing a slow query entry
3104
January 12, 2007 10:28AM
2002
January 15, 2007 08:30AM
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.