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?