Rule Definition
A UNION without the ALL keyword required a sort and increased CPU consumption
Remediation
Add ALL keyword to UNION if it's possible
Violation Code Sample
MY_PROG: PROC OPTIONS(MAIN) REORDER;
END MY_PROG;
Fixed Code Sample
MY_PROG: PROC OPTIONS(MAIN) REORDER;
ON ERROR SNAP
BEGIN
END
END MY_PROG;
Related Technologies
Technical Criterion
Efficiency - SQL and Data Handling Performance
About CAST Appmarq
CAST Appmarq is by far the biggest repository of data about real IT systems. It's built on thousands of analyzed applications, made of 35 different technologies, by over 300 business organizations across major verticals. It provides IT Leaders with factual key analytics to let them know if their applications are on track.