<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: SQL SERVER &#8211; Stream Aggregate Showplan Operator &#8211; Reason of Compute Scalar before Stream Aggregate</title>
	<atom:link href="http://blog.sqlauthority.com/2010/02/05/sql-server-stream-aggregate-showplan-operator-reason-of-compute-scalar-before-stream-aggregate/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2010/02/05/sql-server-stream-aggregate-showplan-operator-reason-of-compute-scalar-before-stream-aggregate/</link>
	<description>Personal Notes of Pinal Dave</description>
	<lastBuildDate>Fri, 17 May 2013 15:26:57 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: SQL SERVER &#8211; Weekly Series &#8211; Memory Lane &#8211; #015 &#171; SQL Server Journey with SQL Authority</title>
		<link>http://blog.sqlauthority.com/2010/02/05/sql-server-stream-aggregate-showplan-operator-reason-of-compute-scalar-before-stream-aggregate/#comment-419685</link>
		<dc:creator><![CDATA[SQL SERVER &#8211; Weekly Series &#8211; Memory Lane &#8211; #015 &#171; SQL Server Journey with SQL Authority]]></dc:creator>
		<pubDate>Sat, 09 Feb 2013 01:30:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=7922#comment-419685</guid>
		<description><![CDATA[[...] Stream Aggregate Showplan Operator – Reason of Compute Scalar before Stream Aggregate Stream Aggregate is a quite commonly encountered showplan operator. I have often found it in very simple COUNT(*) operation’s execution plan. The Stream Aggregate operator group rows by one or more columns and then calculate one or more aggregate expression returned by the query. [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Stream Aggregate Showplan Operator – Reason of Compute Scalar before Stream Aggregate Stream Aggregate is a quite commonly encountered showplan operator. I have often found it in very simple COUNT(*) operation’s execution plan. The Stream Aggregate operator group rows by one or more columns and then calculate one or more aggregate expression returned by the query. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: clicking here</title>
		<link>http://blog.sqlauthority.com/2010/02/05/sql-server-stream-aggregate-showplan-operator-reason-of-compute-scalar-before-stream-aggregate/#comment-419120</link>
		<dc:creator><![CDATA[clicking here]]></dc:creator>
		<pubDate>Thu, 07 Feb 2013 15:01:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=7922#comment-419120</guid>
		<description><![CDATA[Greetings! Very useful advice within this post! It&#039;s the little changes that make the most significant changes. Many thanks for sharing!]]></description>
		<content:encoded><![CDATA[<p>Greetings! Very useful advice within this post! It&#8217;s the little changes that make the most significant changes. Many thanks for sharing!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Johnny</title>
		<link>http://blog.sqlauthority.com/2010/02/05/sql-server-stream-aggregate-showplan-operator-reason-of-compute-scalar-before-stream-aggregate/#comment-361711</link>
		<dc:creator><![CDATA[Johnny]]></dc:creator>
		<pubDate>Thu, 18 Oct 2012 21:05:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=7922#comment-361711</guid>
		<description><![CDATA[Wonderful blog! I found it while surfing around on Yahoo News.
Do you have any suggestions on how to get listed in Yahoo News?

I&#039;ve been trying for a while but I never seem to get there! Thank you]]></description>
		<content:encoded><![CDATA[<p>Wonderful blog! I found it while surfing around on Yahoo News.<br />
Do you have any suggestions on how to get listed in Yahoo News?</p>
<p>I&#8217;ve been trying for a while but I never seem to get there! Thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Syed</title>
		<link>http://blog.sqlauthority.com/2010/02/05/sql-server-stream-aggregate-showplan-operator-reason-of-compute-scalar-before-stream-aggregate/#comment-255482</link>
		<dc:creator><![CDATA[Syed]]></dc:creator>
		<pubDate>Thu, 23 Feb 2012 02:45:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=7922#comment-255482</guid>
		<description><![CDATA[Great Article. Complex topics like this are understand easily by your explanation.Thanks a lot.]]></description>
		<content:encoded><![CDATA[<p>Great Article. Complex topics like this are understand easily by your explanation.Thanks a lot.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ashish Kadam</title>
		<link>http://blog.sqlauthority.com/2010/02/05/sql-server-stream-aggregate-showplan-operator-reason-of-compute-scalar-before-stream-aggregate/#comment-190044</link>
		<dc:creator><![CDATA[Ashish Kadam]]></dc:creator>
		<pubDate>Mon, 07 Nov 2011 10:54:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=7922#comment-190044</guid>
		<description><![CDATA[hi pinal,
  If both the operations cost is same then which types operation we used for query writing? if both are same why there are 2 different operations given?]]></description>
		<content:encoded><![CDATA[<p>hi pinal,<br />
  If both the operations cost is same then which types operation we used for query writing? if both are same why there are 2 different operations given?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marko Parkkola</title>
		<link>http://blog.sqlauthority.com/2010/02/05/sql-server-stream-aggregate-showplan-operator-reason-of-compute-scalar-before-stream-aggregate/#comment-60807</link>
		<dc:creator><![CDATA[Marko Parkkola]]></dc:creator>
		<pubDate>Sun, 07 Feb 2010 13:15:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=7922#comment-60807</guid>
		<description><![CDATA[Well, conversion from larger datatype (BIGINT - 64 bit) to smaller type (INT - 32 bit) does not take time at all. Other way around it could take couple of CPU cycles, depending how it is done.

I think what happens is that COUNT() and COUNT_BIG() are calculated into 64 bit variable and then type casted into 32 bit variable in the case of COUNT(). There is no memory allocation, copying or anything happening, just type casting. You just read the last 32 bit out of 64 bit wide memory space and leave the first 32 bit unnoticed. This takes zero CPU cycles.

(Well, not &quot;last&quot; 32 bit since memory isn&#039;t ordered from left to right in the way one would think)]]></description>
		<content:encoded><![CDATA[<p>Well, conversion from larger datatype (BIGINT &#8211; 64 bit) to smaller type (INT &#8211; 32 bit) does not take time at all. Other way around it could take couple of CPU cycles, depending how it is done.</p>
<p>I think what happens is that COUNT() and COUNT_BIG() are calculated into 64 bit variable and then type casted into 32 bit variable in the case of COUNT(). There is no memory allocation, copying or anything happening, just type casting. You just read the last 32 bit out of 64 bit wide memory space and leave the first 32 bit unnoticed. This takes zero CPU cycles.</p>
<p>(Well, not &#8220;last&#8221; 32 bit since memory isn&#8217;t ordered from left to right in the way one would think)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Tkatch</title>
		<link>http://blog.sqlauthority.com/2010/02/05/sql-server-stream-aggregate-showplan-operator-reason-of-compute-scalar-before-stream-aggregate/#comment-60722</link>
		<dc:creator><![CDATA[Brian Tkatch]]></dc:creator>
		<pubDate>Fri, 05 Feb 2010 14:34:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=7922#comment-60722</guid>
		<description><![CDATA[Very nice Pinal, thanx!]]></description>
		<content:encoded><![CDATA[<p>Very nice Pinal, thanx!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
