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_event_idx_event_id ON "test_event" ("event_id");
CREATE INDEX test_table_idx_sequence_id_test_id ON "test_table" ("sequence_id","test_id");
SELECT
test_table.value1,
test_table.value2
FROM
test_table
WHERE
test_table.sequence_id IN (
SELECT
test_event.sequence_id
FROM
test_event
WHERE
test_event.event_id = 1
)
AND test_table.test_id IN (
SELECT
test_event.test_id
FROM
test_event
WHERE
test_event.event_id = 1
)