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 `es_temp1` ADD INDEX `es_temp1_idx_id_feature` (`id_feature`);
ALTER TABLE `es_temp2` ADD INDEX `es_temp2_idx_id_feature` (`id_feature`);
ALTER TABLE `es_temp3` ADD INDEX `es_temp3_idx_id_feature` (`id_feature`);
ALTER TABLE `es_temp4` ADD INDEX `es_temp4_idx_id_feature` (`id_feature`);
ALTER TABLE `features` ADD INDEX `features_idx_is_deleted_id_survey_id` (`is_deleted`,`id_survey`,`id`);
SELECT
f.id,
f.name,
f.description,
f.is_active,
es_temp1.nr_s,
es_temp2.nr_r,
es_temp3.is_D,
es_temp4.duration
FROM
features f
LEFT JOIN
es_temp1
ON es_temp1.id_feature = f.id
LEFT JOIN
es_temp2
ON es_temp2.id_feature = f.id
LEFT JOIN
es_temp3
ON es_temp3.id_feature = f.id
LEFT JOIN
es_temp4
ON es_temp4.id_feature = f.id
WHERE
f.is_deleted IS NULL
AND f.id_survey = 44
ORDER BY
f.id ASC