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 `Table1` ADD INDEX `table1_idx_sys_timestamp` (`sys_timestamp`);
SELECT
max(Table1.id),
Table1.avg_value,
Table1.sys_timestamp
FROM
Table1
GROUP BY
Table1.sys_timestamp
ORDER BY
Table1.id DESC LIMIT 10