How do I optimize the performance of the following T-SQL
so heavyFunctionCall
function will get called just once.
Looking for the fastest option among table variables, temp tables, CTEsor something else?
SQL:
select dbo.heavyFunctionCall(a, b, c)
from T
where dbo.heavyFunctionCall(a, b, c) > 10