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 camel_messageproce_idx_processor_messageid ON CAMEL_MESSAGEPROCESSED (processor,messageid);
SELECT
*
FROM
transactions tr
WHERE
EXISTS (
SELECT
1
FROM
CAMEL_MESSAGEPROCESSED cmp
WHERE
(
cmp.processor = 'transactionProcessor'
)
AND (
tr.ID = cmp.messageid
)
)