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 `value_table1` ADD INDEX `value_table1_idx_datetime` (`datetime`);
ALTER TABLE `value_table2` ADD INDEX `value_table2_idx_datetime` (`datetime`);
SELECT
value_table1.datetime,
value_table1.value / value_table2.rate
FROM
value_table1
JOIN
value_table2
ON value_table1.datetime = value_table2.datetime
ORDER BY
value_table1.datetime ASC