December 13, 2012 at 5:36 am
Hi All,
I have replaced 3 temp tables in my batch with multiple CTEs.
I see remarkable 50% benefit in REads and Writes have reduced to 0, however, I wanted to know on the CPU.
Is CTE CPU Intensive? I am getting varying CPU results.
Also, I see from other questions that CTEs hit performance when table size is v great. Is that so?
December 13, 2012 at 8:23 pm
nidhis (12/13/2012)
Hi All,I have replaced 3 temp tables in my batch with multiple CTEs.
I see remarkable 50% benefit in REads and Writes have reduced to 0, however, I wanted to know on the CPU.
Is CTE CPU Intensive? I am getting varying CPU results.
Also, I see from other questions that CTEs hit performance when table size is v great. Is that so?
"It Depends" on what the Temp Tables are being used for and how they are being used. Just like views and derived tables, CTEs can be quite good at performance and quite bad.
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy