following query is causing huge cpu utilization and high latency on my db environment. i have tried to improve the query performance with different type of indexes but unfortuanately any indexes not helped to improve the performance. is there any suggessions to rewrite the query to get the same results.
query
SELECT kln.qsw, kln.mngy
FROM (
SELECT kln2.mngy, MAX(kln2.nonUnixjdjf) dm_hj
FROM mfh.view_mats kln2
WHERE kln2.jdjf <= '2022-10-19 10:47:25.000000'
GROUP BY kln2.mngy
) pun_ghky
JOIN pun_ghky.mngy = kln.mngy);
WHklnE? Did this get hit with some bit-flip errors?