MySQL Forums
Forum List  »  Optimizer & Parser

SQL SELECT COUNT(*) TO SLOW
Posted by: Jim Louch
Date: December 21, 2010 02:28PM

SELECT Count(*) AS recordCount
FROM ((PART INNER JOIN Interchange ON PART.PART_ID = Interchange.Part_ID) INNER JOIN PartToBaseVehicle ON PART.PART_ID = PartToBaseVehicle.PART_ID) INNER JOIN Applications ON PartToBaseVehicle.PartToBaseVehicleID = Applications.PartToBaseVehicleID WHERE (((Interchange.InterchangeNumber) Like '%aaa%'))


Anything I can do to make this query go faster? Takes way to long to execute. I put indexes on all the fields. What else can I do?

Options: ReplyQuote


Subject
Views
Written By
Posted
SQL SELECT COUNT(*) TO SLOW
4031
December 21, 2010 02:28PM
1878
December 26, 2010 11:15AM


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.