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 `edge_meas_point` ADD INDEX `edge_point_idx_edge_id_meas_id_order` (`edge_id`,`meas_point_id`,`order`);
ALTER TABLE `meas_point_data` ADD INDEX `meas_data_idx_date_meas_id` (`date`,`meas_point_id`);
SELECT
TOP 1 d.date,
d.value
FROM
meas_point_data AS d,
edge_meas_point AS em
WHERE
em.meas_point_id = d.meas_point_id
AND em.edge_id = 1
AND d.date = 2018 - 12 - 21
ORDER BY
em.order