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 test_idx_rowid ON test (rowid);
CREATE INDEX test_idx_id_rowid ON test (id,rowid);
SELECT
1
FROM
test a
WHERE
a.rowid IN (
SELECT
b.rowid
FROM
test b
WHERE
b.id = a.id
AND b.rowid != a.rowid
)