In case you have your own slow SQL query, you can optimize it automatically here.
For the query above, the following recommendations will be helpful as part of the SQL tuning process.
You'll find 3 sections below:
ALTER TABLE `operation_proportions` ADD INDEX `operation_proporti_idx_operator_route` (`operator`,`route`);
SELECT
routes.route_number,
routes.frequency
FROM
routes,
(SELECT
operation_proportions.proportion
FROM
operation_proportions
WHERE
operation_proportions.operator = 'Venture Travel') AS Prop
WHERE
EXISTS (
SELECT
1
FROM
operation_proportions
WHERE
(
operation_proportions.operator = 'Venture Travel'
)
AND (
routes.route_number = operation_proportions.route
)
)