Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 5123

Why it is not using more CPUs?

$
0
0

Hi experts, I have 2 queries…

#1

Select * from View.

It takes 15 seconds to execute, and I see the query plan, everything has the parallelized icon (https://i-technet.sec.s-msft.com/dynimg/IC243117.gif).

Life is good! The query is fast, and retrieves almost 5 million records.

#2

SELECT ES.EmailSent_ID,
Market,
ProgramType,
Report_id,
Member_id,
SentDate,
et_rrr.dbo.udf_getTimeIdForDatePart('dd',SentDate) as
TimeId,
TestGroup, FROM View ES

It takes 32 minutes to execute, there is no parallelism in the execution plan… It’s basically doing the same, why does it take a thousand times more?

(of course it’s the same view we are talking about). Can/should I force parallelism?


Viewing all articles
Browse latest Browse all 5123

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>