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 `MY_TARGET_TABLE` ADD INDEX `my_table_idx_srv_id` (`srv_accs_id`);
SELECT
svc.ltv_scr,
count(*) AS freq
FROM
MY_BASE_TABLE svc
JOIN
MY_TARGET_TABLE x
ON x.srv_accs_id = svc.srv_accs_id
GROUP BY
1
ORDER BY
1