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:
CREATE INDEX mytypes_idx_status_mtype_mdate ON MyTypes (Status,MType,MDate);
CREATE INDEX mytypes_idx_mtype_mdate ON MyTypes (MType,MDate);
SELECT
m.MType,
MIN(m.MDate)
FROM
MyTypes m
WHERE
m.MType IN (
1, 2, 3, 4
)
AND m.MDate > GETDATE()
AND m.Status = 1
GROUP BY
m.MType