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 measure_idx_abc_id ON MEASURE (ABC_ID);
SELECT
R.ENCOUNTER_ID,
M.MEASURE_ID,
M.TAKEN_TIME,
M.VALUE,
row_number() OVER (PARTITION
BY
R.ENCOUNTER_ID,
M.MEASURE_ID
ORDER BY
R.ENCOUNTER_ID,
M.MEASURE_ID,
M.TAKEN_TIME ASC) AS SEQ
FROM
RECORD R
INNER JOIN
MEASURE M
ON R.ABC_ID = M.ABC_ID