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 sentence_idx_ctid ON "sentence" ("ctid");
CREATE INDEX sentence_idx_sentence_zh_ctid ON "sentence" ("sentence_zh","ctid");
SELECT
1
FROM
sentence
WHERE
sentence.ctid NOT IN (
SELECT
min(sentence.ctid)
FROM
sentence
GROUP BY
sentence.sentence_zh
)