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 company_idx_id ON "company" ("id");
CREATE INDEX company_industry_idx_industry_id ON "company_industry" ("industry_id");
CREATE INDEX industry_idx_id ON "industry" ("id");
SELECT
c.city_name AS city
FROM
industry AS i
INNER JOIN
company_industry AS ci
ON (
ci.industry_id = i.id
)
INNER JOIN
company AS c
ON (
c.id = ci.company_id
)
WHERE
i.id = 288
GROUP BY
city