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 `Table` ADD INDEX `table_idx_id4_columnn1` (`id4`,`Columnn1`);
ALTER TABLE `Table2` ADD INDEX `table2_idx_id2_id3_id` (`id2`,`id3`,`id`);
SELECT
COUNT(*)
FROM
dbo.Table WITH (NOLOCK)
WHERE
dbo.Table.Columnn1 IN (
1, 2
)
AND EXISTS (
SELECT
1
FROM
dbo.Table2
WHERE
(
dbo.Table2.id2 = 5
AND dbo.Table2.id3 = 1
)
AND (
dbo.Table.Column2 = dbo.Table2.id
)
)
AND dbo.Table.id4 = 8