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 `records` ADD INDEX `records_idx_player_id_id` (`player_id`,`id`);
ALTER TABLE `records` ADD INDEX `records_idx_id` (`id`);
SELECT
SUM(records_kills) / SUM(t1.duration) * 60 * 60 kills_hour_last_10
FROM
(SELECT
records_kills,
rounds.duration
FROM
(SELECT
records.kills AS records_kills,
records.round_id AS records_round_id
FROM
records
WHERE
records.player_id = 1
ORDER BY
records.id DESC LIMIT 10) AS records
JOIN
rounds
ON rounds.id = records.records_round_id
WHERE
1 = 1 LIMIT 10
) t1