We got a 50% increase in speed moving in the CTE in one particular case, so it’s worth the time, but any performance improvements should be marked with a bench so that you can compare one against the other.
PS: we wrote more than one request with a CTE in it before we got the one we are currently using.
source
share