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 mytable_idx_color_date ON "myTable" ("color","date");
CREATE INDEX mytable_idx_date_color ON "myTable" ("date","color");
SELECT
myTable.color,
MAX(myTable.date)
FROM
myTable
WHERE
myTable.color = ANY(
ARRAY('red', 'blue')
)
GROUP BY
myTable.date