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 user_comments_idx_comment_date ON "user_comments" ("comment_date");
SELECT
user_comments.comment_date,
array_agg(user_comments.user_id) users,
array_agg(user_comments.comment) comments
FROM
user_comments
GROUP BY
user_comments.comment_date