<?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: Video of my PLINQ session at PDC 2009</title>
	<atom:link href="http://igoro.com/archive/video-of-my-plinq-session-at-pdc-2009/feed/" rel="self" type="application/rss+xml" />
	<link>http://igoro.com/archive/video-of-my-plinq-session-at-pdc-2009/</link>
	<description>On programming, technology, and random things of interest</description>
	<lastBuildDate>Thu, 29 Jul 2010 00:28:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Christian Peeters</title>
		<link>http://igoro.com/archive/video-of-my-plinq-session-at-pdc-2009/comment-page-1/#comment-833</link>
		<dc:creator>Christian Peeters</dc:creator>
		<pubDate>Fri, 19 Mar 2010 10:44:52 +0000</pubDate>
		<guid isPermaLink="false">http://igoro.com/?p=353#comment-833</guid>
		<description>Hi Igor,

I attended your session at the PDC09. Great talk!
I found it very interesting, so when they asked me to do a session at MS DevDays in the Netherlands I decided to talk about LINQ and PLINQ.
I hope my crowd also will be inspired by it.</description>
		<content:encoded><![CDATA[<p>Hi Igor,</p>
<p>I attended your session at the PDC09. Great talk!<br />
I found it very interesting, so when they asked me to do a session at MS DevDays in the Netherlands I decided to talk about LINQ and PLINQ.<br />
I hope my crowd also will be inspired by it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Igor Ostrovsky</title>
		<link>http://igoro.com/archive/video-of-my-plinq-session-at-pdc-2009/comment-page-1/#comment-652</link>
		<dc:creator>Igor Ostrovsky</dc:creator>
		<pubDate>Fri, 22 Jan 2010 07:17:43 +0000</pubDate>
		<guid isPermaLink="false">http://igoro.com/?p=353#comment-652</guid>
		<description>Yes, PLINQ is most often applied to expensive, in-memory operations. PLINQ runs the user delegates on different threads, and so if the processing is happening on your multi-core machine, all of the cores will be used to evaluate the query.

In your example, PLINQ runs your operations in parallel. Each operation opens a connections to the database. But, it seems that by opening multiple concurrent connections, you group update does not get any faster - probably because the database takes a lock and serializes the operations. Does that help clarify things?</description>
		<content:encoded><![CDATA[<p>Yes, PLINQ is most often applied to expensive, in-memory operations. PLINQ runs the user delegates on different threads, and so if the processing is happening on your multi-core machine, all of the cores will be used to evaluate the query.</p>
<p>In your example, PLINQ runs your operations in parallel. Each operation opens a connections to the database. But, it seems that by opening multiple concurrent connections, you group update does not get any faster &#8211; probably because the database takes a lock and serializes the operations. Does that help clarify things?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karol Andraszek</title>
		<link>http://igoro.com/archive/video-of-my-plinq-session-at-pdc-2009/comment-page-1/#comment-649</link>
		<dc:creator>Karol Andraszek</dc:creator>
		<pubDate>Thu, 14 Jan 2010 18:25:16 +0000</pubDate>
		<guid isPermaLink="false">http://igoro.com/?p=353#comment-649</guid>
		<description>You are right, When I run six processes at the same moment I have still the same problem. 

Should I change Sql options to connections ?

Can you tell me If I use PLINQ to communication with DataBase, Should I expect better result than LINQ or PLINQ is only applicable to the in memory operations ?

Thanks for response again :)</description>
		<content:encoded><![CDATA[<p>You are right, When I run six processes at the same moment I have still the same problem. </p>
<p>Should I change Sql options to connections ?</p>
<p>Can you tell me If I use PLINQ to communication with DataBase, Should I expect better result than LINQ or PLINQ is only applicable to the in memory operations ?</p>
<p>Thanks for response again <img src='http://igoro.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Igor Ostrovsky</title>
		<link>http://igoro.com/archive/video-of-my-plinq-session-at-pdc-2009/comment-page-1/#comment-648</link>
		<dc:creator>Igor Ostrovsky</dc:creator>
		<pubDate>Thu, 14 Jan 2010 17:23:43 +0000</pubDate>
		<guid isPermaLink="false">http://igoro.com/?p=353#comment-648</guid>
		<description>This really depends on what data.UpdatePerson(x) does, and what the server does in response. Somewhere there must be a lock.

Perhaps SQL2008 only executes one of the updates at a time. You can try what happens when you run six processes concurrently, with each process invoking the stored procedure.</description>
		<content:encoded><![CDATA[<p>This really depends on what data.UpdatePerson(x) does, and what the server does in response. Somewhere there must be a lock.</p>
<p>Perhaps SQL2008 only executes one of the updates at a time. You can try what happens when you run six processes concurrently, with each process invoking the stored procedure.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karol Andraszek</title>
		<link>http://igoro.com/archive/video-of-my-plinq-session-at-pdc-2009/comment-page-1/#comment-645</link>
		<dc:creator>Karol Andraszek</dc:creator>
		<pubDate>Thu, 14 Jan 2010 09:07:21 +0000</pubDate>
		<guid isPermaLink="false">http://igoro.com/?p=353#comment-645</guid>
		<description>My Code: 

bool[] result = new bool[personCollection.Count];
result = personCollection.AsParallel().Select(x =&gt; data.UpdatePerson(x)).ToArray();


Why PLINQ is not the right choice?
When I run stored sprocedure, sp_who2 on SQL2008 I see six connections, but all them have sleeping status...

Thanks for replay :)</description>
		<content:encoded><![CDATA[<p>My Code: </p>
<p>bool[] result = new bool[personCollection.Count];<br />
result = personCollection.AsParallel().Select(x =&gt; data.UpdatePerson(x)).ToArray();</p>
<p>Why PLINQ is not the right choice?<br />
When I run stored sprocedure, sp_who2 on SQL2008 I see six connections, but all them have sleeping status&#8230;</p>
<p>Thanks for replay <img src='http://igoro.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Igor Ostrovsky</title>
		<link>http://igoro.com/archive/video-of-my-plinq-session-at-pdc-2009/comment-page-1/#comment-644</link>
		<dc:creator>Igor Ostrovsky</dc:creator>
		<pubDate>Thu, 14 Jan 2010 06:42:00 +0000</pubDate>
		<guid isPermaLink="false">http://igoro.com/?p=353#comment-644</guid>
		<description>Karol, what does your query look like? Note that PLINQ only parallelizes the work done on the client. If you are updating a database, PLINQ is typically not the right choice.</description>
		<content:encoded><![CDATA[<p>Karol, what does your query look like? Note that PLINQ only parallelizes the work done on the client. If you are updating a database, PLINQ is typically not the right choice.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karol Andraszek</title>
		<link>http://igoro.com/archive/video-of-my-plinq-session-at-pdc-2009/comment-page-1/#comment-642</link>
		<dc:creator>Karol Andraszek</dc:creator>
		<pubDate>Tue, 12 Jan 2010 21:14:37 +0000</pubDate>
		<guid isPermaLink="false">http://igoro.com/?p=353#comment-642</guid>
		<description>Great Session, but I have problem when I use PLINQ with DataBase:
 
I&#039;m tried to update rows using PLINQ (I used Parallel.ForEeach() too), but I don&#039;t have good results. 
And Parallel result is worse then Sequential...
 
What I have to do, that to have parallel result better ?</description>
		<content:encoded><![CDATA[<p>Great Session, but I have problem when I use PLINQ with DataBase:</p>
<p>I&#8217;m tried to update rows using PLINQ (I used Parallel.ForEeach() too), but I don&#8217;t have good results.<br />
And Parallel result is worse then Sequential&#8230;</p>
<p>What I have to do, that to have parallel result better ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tomasz Kujawa</title>
		<link>http://igoro.com/archive/video-of-my-plinq-session-at-pdc-2009/comment-page-1/#comment-633</link>
		<dc:creator>Tomasz Kujawa</dc:creator>
		<pubDate>Fri, 04 Dec 2009 17:31:27 +0000</pubDate>
		<guid isPermaLink="false">http://igoro.com/?p=353#comment-633</guid>
		<description>I think it was great session - I could only watch the video, but even that was very good.:D Looking forward to more your presentations.</description>
		<content:encoded><![CDATA[<p>I think it was great session &#8211; I could only watch the video, but even that was very good.:D Looking forward to more your presentations.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
