<?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 content aggregation queries on multiple lists</title>
	<atom:link href="http://blog.mastykarz.nl/performance-of-content-aggregation-queries-on-multiple-lists/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.mastykarz.nl/performance-of-content-aggregation-queries-on-multiple-lists/</link>
	<description>Innovation Matters &#124; SharePoint Server MVP</description>
	<lastBuildDate>Sun, 14 Mar 2010 14:09:57 +0100</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Waldek Mastykarz</title>
		<link>http://blog.mastykarz.nl/performance-of-content-aggregation-queries-on-multiple-lists/comment-page-1/#comment-22563</link>
		<dc:creator>Waldek Mastykarz</dc:creator>
		<pubDate>Mon, 29 Jun 2009 15:07:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mastykarz.nl/2008/07/04/performance-of-content-aggregation-queries-on-multiple-lists/#comment-22563</guid>
		<description>@Amit: so far I haven&#039;t used the CQWP to perform cross Site Collection queries. Personally if I had to do aggregate content from multiple Site Collections I would use SharePoint Search as it&#039;s better performing than running three queries and merging the DataTables with results.</description>
		<content:encoded><![CDATA[<p>@Amit: so far I haven&#039;t used the CQWP to perform cross Site Collection queries. Personally if I had to do aggregate content from multiple Site Collections I would use SharePoint Search as it&#039;s better performing than running three queries and merging the DataTables with results.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amit</title>
		<link>http://blog.mastykarz.nl/performance-of-content-aggregation-queries-on-multiple-lists/comment-page-1/#comment-22540</link>
		<dc:creator>Amit</dc:creator>
		<pubDate>Mon, 29 Jun 2009 09:41:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mastykarz.nl/2008/07/04/performance-of-content-aggregation-queries-on-multiple-lists/#comment-22540</guid>
		<description>Hi Waldek,

I&#039;m working on extending the Content Query webpart to fetch the content from across the Site Collections. I&#039;ve to show up the content from 3 different site collections (SiteCollA, SiteCollB &amp; SiteCollC). 

Since the query remains the same for these 3 content sources, I build the query first in my code using CrossListQueryInfo object.

CrossListQueryInfo queryInfo = new CrossListQueryInfo();
and assign all the properties of CrossListQueryInfo.

Now I pass this query to the three content sources, using separate CrossListQueryCache for each content source and merge the DataTable.

for e.g. 
CrossListQueryCache queryCacheSiteCollA = new CrossListQueryCache(queryInfo);
dtResults.Merge(queryCacheSiteCollA.GetSiteData(&lt;SPSite object of SiteCollA&gt;));


CrossListQueryCache queryCacheSiteCollB = new CrossListQueryCache(queryInfo);
dtResults.Merge(queryCacheSiteCollB.GetSiteData(&lt;SPSite object of SiteCollB&gt;));


CrossListQueryCache queryCacheSiteCollC = new CrossListQueryCache(queryInfo);
dtResults.Merge(queryCacheSiteCollC.GetSiteData(&lt;SPSite object of SiteCollC&gt;));

I&#039;m experiencing a strange behavior, If I set the UseCache property of CrossListQueryInfo as false, then I get the results immediately, of all three site collections.

Whereas, if I set the UseCache property of CrossListQueryInfo as true, then

On first page load, I got File Not Found Exception on webpage. After debugging, i found out that I got results of only first Site Collection i.e. SiteCollA, and got an exception at queryCacheSiteCollA.GetSiteData(&lt;SPSite object of SiteCollA&gt;), which says &quot;Invalid URL&quot;.

On second page load, I again got File Not Found Exception on webpage. After debugging, i found out that I get results of first Site Collection i.e. SiteCollA, and second Site Collection i.e. SiteCollB. I got an exception at queryCacheSiteCollC.GetSiteData(&lt;SPSite object of SiteCollC&gt;), which says &quot;Invalid URL&quot;.


On third page load, finally I got the correct result set on webpage.

Have you experience anything like this, while doing custom aggregation using CrossListQueryInfo from across sites? 
&amp; plz let me know What value did you use for the property UseCache of CrossListQueryInfo?</description>
		<content:encoded><![CDATA[<p>Hi Waldek,</p>
<p>I&#039;m working on extending the Content Query webpart to fetch the content from across the Site Collections. I&#039;ve to show up the content from 3 different site collections (SiteCollA, SiteCollB &amp; SiteCollC). </p>
<p>Since the query remains the same for these 3 content sources, I build the query first in my code using CrossListQueryInfo object.</p>
<p>CrossListQueryInfo queryInfo = new CrossListQueryInfo();<br />
and assign all the properties of CrossListQueryInfo.</p>
<p>Now I pass this query to the three content sources, using separate CrossListQueryCache for each content source and merge the DataTable.</p>
<p>for e.g.<br />
CrossListQueryCache queryCacheSiteCollA = new CrossListQueryCache(queryInfo);<br />
dtResults.Merge(queryCacheSiteCollA.GetSiteData(&lt;SPSite object of SiteCollA&gt;));</p>
<p>CrossListQueryCache queryCacheSiteCollB = new CrossListQueryCache(queryInfo);<br />
dtResults.Merge(queryCacheSiteCollB.GetSiteData(&lt;SPSite object of SiteCollB&gt;));</p>
<p>CrossListQueryCache queryCacheSiteCollC = new CrossListQueryCache(queryInfo);<br />
dtResults.Merge(queryCacheSiteCollC.GetSiteData(&lt;SPSite object of SiteCollC&gt;));</p>
<p>I&#039;m experiencing a strange behavior, If I set the UseCache property of CrossListQueryInfo as false, then I get the results immediately, of all three site collections.</p>
<p>Whereas, if I set the UseCache property of CrossListQueryInfo as true, then</p>
<p>On first page load, I got File Not Found Exception on webpage. After debugging, i found out that I got results of only first Site Collection i.e. SiteCollA, and got an exception at queryCacheSiteCollA.GetSiteData(&lt;SPSite object of SiteCollA&gt;), which says &#034;Invalid URL&#034;.</p>
<p>On second page load, I again got File Not Found Exception on webpage. After debugging, i found out that I get results of first Site Collection i.e. SiteCollA, and second Site Collection i.e. SiteCollB. I got an exception at queryCacheSiteCollC.GetSiteData(&lt;SPSite object of SiteCollC&gt;), which says &#034;Invalid URL&#034;.</p>
<p>On third page load, finally I got the correct result set on webpage.</p>
<p>Have you experience anything like this, while doing custom aggregation using CrossListQueryInfo from across sites?<br />
&amp; plz let me know What value did you use for the property UseCache of CrossListQueryInfo?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Avoid One Thing &#187; Blog Archive &#187; Performance of content aggregation queries on multiple lists</title>
		<link>http://blog.mastykarz.nl/performance-of-content-aggregation-queries-on-multiple-lists/comment-page-1/#comment-3065</link>
		<dc:creator>Avoid One Thing &#187; Blog Archive &#187; Performance of content aggregation queries on multiple lists</dc:creator>
		<pubDate>Fri, 04 Jul 2008 18:49:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mastykarz.nl/2008/07/04/performance-of-content-aggregation-queries-on-multiple-lists/#comment-3065</guid>
		<description>[...] Performance of content aggregation queries on multiple lists A piece of advice here: you can either run multiple queries separately or create one to query content from specific lists. The results are similar (except a few peaks). The one thing not to do is to query all Page Libraries within the &#8230; [...]</description>
		<content:encoded><![CDATA[<p>[...] Performance of content aggregation queries on multiple lists A piece of advice here: you can either run multiple queries separately or create one to query content from specific lists. The results are similar (except a few peaks). The one thing not to do is to query all Page Libraries within the &#8230; [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
