CTE (Common Table Expression) vs Temp tables or Table variables, which is faster?
CTE (Common Table Expression) vs Temp tables or Table variables , which is faster?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
We got a 50% increase in speed moving to CTE in one particular case so it’s worth giving it a go but any performance related enhancements need to be bench marked so you can compare one against another.
PS: we wrote more than one query with a CTE in it before we got the one we now use.