How to optimize slow query with many joins [closed]
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed last year . My situation: the query searches around 90,000 vehicles the query takes long each time I already have indexes on all the fields being JOINed. How can I optimise it? Here is the query: SELECT vehicles.make_id, vehicles.fuel_id, vehicles.body_id, vehicles.transmission_id, vehicles