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 tablea_idx_atype_aid_modified ON "tableA" ("atype","aid","modified_at" desc);
CREATE INDEX tablea_idx_modified_at ON "tableA" ("modified_at" desc);
SELECT
*
FROM
tableA
WHERE
(
tableA.columna = 1
OR tableA.columnb = 2
)
AND tableA.atype = 35
AND tableA.aid IN (
1, 2, 3
)
ORDER BY
tableA.modified_at DESC LIMIT 25