<?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/"
		>
<channel>
	<title>Comments on: Performance of various methods to retrieve one list item</title>
	<atom:link href="http://blog.mastykarz.nl/performance-methods-retrieve-list-item/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.mastykarz.nl/performance-methods-retrieve-list-item/</link>
	<description>Innovation Matters &#124; SharePoint Server MVP</description>
	<lastBuildDate>Wed, 10 Mar 2010 18:39:15 +0100</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Tobias Zimmergren</title>
		<link>http://blog.mastykarz.nl/performance-methods-retrieve-list-item/comment-page-1/#comment-22662</link>
		<dc:creator>Tobias Zimmergren</dc:creator>
		<pubDate>Tue, 30 Jun 2009 13:24:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mastykarz.nl/performance-methods-retrieve-list-item/#comment-22662</guid>
		<description>Awesome mate. Will shove some traffic over here ;-)</description>
		<content:encoded><![CDATA[<p>Awesome mate. Will shove some traffic over here <img src='http://blog.mastykarz.nl/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy Burns</title>
		<link>http://blog.mastykarz.nl/performance-methods-retrieve-list-item/comment-page-1/#comment-22196</link>
		<dc:creator>Andy Burns</dc:creator>
		<pubDate>Thu, 25 Jun 2009 09:35:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mastykarz.nl/performance-methods-retrieve-list-item/#comment-22196</guid>
		<description>Yup - as you said, it\&#039;s down to what you\&#039;re trying to do

(I prefer not having folders too!)

Scope settings are described here:
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spviewscope.aspx</description>
		<content:encoded><![CDATA[<p>Yup &#8211; as you said, it\&#039;s down to what you\&#039;re trying to do</p>
<p>(I prefer not having folders too!)</p>
<p>Scope settings are described here:<br />
<a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spviewscope.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spviewscope.aspx</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Waldek Mastykarz</title>
		<link>http://blog.mastykarz.nl/performance-methods-retrieve-list-item/comment-page-1/#comment-22124</link>
		<dc:creator>Waldek Mastykarz</dc:creator>
		<pubDate>Wed, 24 Jun 2009 19:15:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mastykarz.nl/performance-methods-retrieve-list-item/#comment-22124</guid>
		<description>@Andy Burns: I think that the GetItemById uses the recursive scope in case you were using folders. Without that the query would run in the root folder only. So while theoretically there might be situations when GetItemById might be as good as SPSiteDataQuery my test was focusing on a no-folder scenario like retrieving one Publishing Page (sorry for not mentioning this earlier). As the Pages Library doesn&#039;t support folder there&#039;s no need of running a recursive query.</description>
		<content:encoded><![CDATA[<p>@Andy Burns: I think that the GetItemById uses the recursive scope in case you were using folders. Without that the query would run in the root folder only. So while theoretically there might be situations when GetItemById might be as good as SPSiteDataQuery my test was focusing on a no-folder scenario like retrieving one Publishing Page (sorry for not mentioning this earlier). As the Pages Library doesn&#039;t support folder there&#039;s no need of running a recursive query.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex Angas</title>
		<link>http://blog.mastykarz.nl/performance-methods-retrieve-list-item/comment-page-1/#comment-22115</link>
		<dc:creator>Alex Angas</dc:creator>
		<pubDate>Wed, 24 Jun 2009 14:59:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mastykarz.nl/performance-methods-retrieve-list-item/#comment-22115</guid>
		<description>I love these tests you do, please keep it up!

By the way, there is a page on SharePointDevWiki for cross-site queries that I created. Never had time to finish it though if you would like to: http://sharepointdevwiki.com/display/public/Performing+cross-site+list+queries</description>
		<content:encoded><![CDATA[<p>I love these tests you do, please keep it up!</p>
<p>By the way, there is a page on SharePointDevWiki for cross-site queries that I created. Never had time to finish it though if you would like to: <a href="http://sharepointdevwiki.com/display/public/Performing+cross-site+list+queries" rel="nofollow">http://sharepointdevwiki.com/display/public/Performing+cross-site+list+queries</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy Burns</title>
		<link>http://blog.mastykarz.nl/performance-methods-retrieve-list-item/comment-page-1/#comment-22087</link>
		<dc:creator>Andy Burns</dc:creator>
		<pubDate>Wed, 24 Jun 2009 08:57:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mastykarz.nl/performance-methods-retrieve-list-item/#comment-22087</guid>
		<description>How in God&#039;s name can an SPQuery or SPSiteQuery be faster than &#039;GetItemById&#039;? Wouldn&#039;t it make sense to use SPQuery internally?

Oh, just checked in reflector - it does! What might be different is that it also specifies that the SPQuery.ViewAttributes = &quot;Scope=&quot;RecursiveAll&quot; ModerationType=&quot;Moderator&quot; &quot;;
 
So, depending on your test query, it&#039;s possible that the GetItemById is actually running a more complex query. &#039;RecursiveAll&#039; sounds expensive!

Fancy retesting using the same scopes? Might be interesting! 

Of course, none of this takes away from your point - consider what *you* are doing and how you want to retrieve *your* content. Then test!</description>
		<content:encoded><![CDATA[<p>How in God&#039;s name can an SPQuery or SPSiteQuery be faster than &#039;GetItemById&#039;? Wouldn&#039;t it make sense to use SPQuery internally?</p>
<p>Oh, just checked in reflector &#8211; it does! What might be different is that it also specifies that the SPQuery.ViewAttributes = &#034;Scope=&#034;RecursiveAll&#034; ModerationType=&#034;Moderator&#034; &#034;;</p>
<p>So, depending on your test query, it&#039;s possible that the GetItemById is actually running a more complex query. &#039;RecursiveAll&#039; sounds expensive!</p>
<p>Fancy retesting using the same scopes? Might be interesting! </p>
<p>Of course, none of this takes away from your point &#8211; consider what *you* are doing and how you want to retrieve *your* content. Then test!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robin</title>
		<link>http://blog.mastykarz.nl/performance-methods-retrieve-list-item/comment-page-1/#comment-22024</link>
		<dc:creator>Robin</dc:creator>
		<pubDate>Tue, 23 Jun 2009 15:12:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mastykarz.nl/performance-methods-retrieve-list-item/#comment-22024</guid>
		<description>You&#039;ve really outdone yourself mate! Damn! ;)</description>
		<content:encoded><![CDATA[<p>You&#039;ve really outdone yourself mate! Damn! <img src='http://blog.mastykarz.nl/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeremy Thake</title>
		<link>http://blog.mastykarz.nl/performance-methods-retrieve-list-item/comment-page-1/#comment-22001</link>
		<dc:creator>Jeremy Thake</dc:creator>
		<pubDate>Tue, 23 Jun 2009 06:13:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mastykarz.nl/performance-methods-retrieve-list-item/#comment-22001</guid>
		<description>Didn&#039;t miss them...I&#039;m waiting for someone to add them ;-) Really trying to encourage the community to collaborate in this central resource. It&#039;s being consumed a lot by end users, but not too many are contributing at this stage...apart from you and a few other select stars!</description>
		<content:encoded><![CDATA[<p>Didn&#039;t miss them&#8230;I&#039;m waiting for someone to add them <img src='http://blog.mastykarz.nl/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />  Really trying to encourage the community to collaborate in this central resource. It&#039;s being consumed a lot by end users, but not too many are contributing at this stage&#8230;apart from you and a few other select stars!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Waldek Mastykarz</title>
		<link>http://blog.mastykarz.nl/performance-methods-retrieve-list-item/comment-page-1/#comment-21999</link>
		<dc:creator>Waldek Mastykarz</dc:creator>
		<pubDate>Tue, 23 Jun 2009 05:34:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mastykarz.nl/performance-methods-retrieve-list-item/#comment-21999</guid>
		<description>@Jeremy: Thanks. I haven&#039;t found any entries on CrossListQueryCache and PortalSiteMapProvider by the way. Did I miss them?</description>
		<content:encoded><![CDATA[<p>@Jeremy: Thanks. I haven&#039;t found any entries on CrossListQueryCache and PortalSiteMapProvider by the way. Did I miss them?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeremy Thake</title>
		<link>http://blog.mastykarz.nl/performance-methods-retrieve-list-item/comment-page-1/#comment-21980</link>
		<dc:creator>Jeremy Thake</dc:creator>
		<pubDate>Mon, 22 Jun 2009 22:22:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mastykarz.nl/performance-methods-retrieve-list-item/#comment-21980</guid>
		<description>Waldek, I&#039;ve been compiling a list on the @SPDevWiki to demonstrate sample code on all these too as MSDN tends to just dump object model doco in their pages.

&lt;a href=&quot;http://www.sharepointdevwiki.com/display/public/SharePoint+Lists&quot; rel=&quot;nofollow&quot;&gt;http://www.sharepointdevwiki.com/display/public/SharePoint+Lists&lt;/a&gt;

Great post mate!</description>
		<content:encoded><![CDATA[<p>Waldek, I&#039;ve been compiling a list on the @SPDevWiki to demonstrate sample code on all these too as MSDN tends to just dump object model doco in their pages.</p>
<p><a href="http://www.sharepointdevwiki.com/display/public/SharePoint+Lists" rel="nofollow">http://www.sharepointdevwiki.com/display/public/SharePoint+Lists</a></p>
<p>Great post mate!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
