Some correlated scalar subqueries repeatedly access tables that are already referenced by the outer query block, which can lead to unnecessary execution overhead.
Add WinMagic optimization to decorrelate eligible correlated scalar subqueries using window functions. This optimization reduces redundant access to tables shared by the outer query and subquery, allowing supported queries to be transformed into a window aggregation plan for better execution performance.
Some correlated scalar subqueries repeatedly access tables that are already referenced by the outer query block, which can lead to unnecessary execution overhead.
Add WinMagic optimization to decorrelate eligible correlated scalar subqueries using window functions. This optimization reduces redundant access to tables shared by the outer query and subquery, allowing supported queries to be transformed into a window aggregation plan for better execution performance.