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 locationcache_idx_locationid ON dbo.LocationCache (LocationId);
CREATE INDEX locations_idx_countryid_type ON dbo.Locations (CountryId,Type);
SELECT
TOP 100 a.LocationId,
b.SearchQuery,
b.SearchRank
FROM
dbo.Locations a
INNER JOIN
dbo.LocationCache b
ON a.LocationId = b.LocationId
WHERE
a.CountryId = 2
AND a.Type = 7