<?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: Speeding up data access by using Linq to SQL or EF</title>
	<atom:link href="http://www.ytechie.com/2009/10/speeding-up-data-access-by-using-linq-to-sql-or-ef.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.ytechie.com/2009/10/speeding-up-data-access-by-using-linq-to-sql-or-ef.html</link>
	<description>Productive software development using ASP.NET, C#, Adobe Flex, and other technologies and tools.</description>
	<lastBuildDate>Thu, 09 Sep 2010 10:53:34 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Ta4ka</title>
		<link>http://www.ytechie.com/2009/10/speeding-up-data-access-by-using-linq-to-sql-or-ef.html/comment-page-1#comment-1698</link>
		<dc:creator>Ta4ka</dc:creator>
		<pubDate>Thu, 04 Mar 2010 12:35:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.ytechie.com/2009/10/speeding-up-data-access-by-using-linq-to-sql-or-ef.html#comment-1698</guid>
		<description>In your 3 point you say: If the underlying provider has an optimization for using the SQL TOP  command, 
I have a linq to sql querry where I use it for paging and with take and skip, and orderby. When i execute the querry it takes more than 40 secounds. Can you tell me please how to turn optimization on, in the generate sql from linq. My sql server is mssql 2008</description>
		<content:encoded><![CDATA[<p>In your 3 point you say: If the underlying provider has an optimization for using the SQL TOP  command,<br />
I have a linq to sql querry where I use it for paging and with take and skip, and orderby. When i execute the querry it takes more than 40 secounds. Can you tell me please how to turn optimization on, in the generate sql from linq. My sql server is mssql 2008</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.ytechie.com/2009/10/speeding-up-data-access-by-using-linq-to-sql-or-ef.html/comment-page-1#comment-1628</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Wed, 28 Oct 2009 19:42:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.ytechie.com/2009/10/speeding-up-data-access-by-using-linq-to-sql-or-ef.html#comment-1628</guid>
		<description>I must have have explained it well enough.

Actually think about what the stored procedure would look like. To truly optimize it, I mentioned that you would need 3 versions for EACH set of parameters:
1. Count
2. Page n
3. First page

On the page I worked with, there were about 15 search criteria. That gives you 45 different stored procedures to be &quot;optimal&quot;. The LINQ solution comes pretty darn close to that efficiency, while having no duplicate code.

Is that clear now?</description>
		<content:encoded><![CDATA[<p>I must have have explained it well enough.</p>
<p>Actually think about what the stored procedure would look like. To truly optimize it, I mentioned that you would need 3 versions for EACH set of parameters:<br />
1. Count<br />
2. Page n<br />
3. First page</p>
<p>On the page I worked with, there were about 15 search criteria. That gives you 45 different stored procedures to be &#8220;optimal&#8221;. The LINQ solution comes pretty darn close to that efficiency, while having no duplicate code.</p>
<p>Is that clear now?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lek</title>
		<link>http://www.ytechie.com/2009/10/speeding-up-data-access-by-using-linq-to-sql-or-ef.html/comment-page-1#comment-1627</link>
		<dc:creator>Lek</dc:creator>
		<pubDate>Wed, 28 Oct 2009 19:33:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.ytechie.com/2009/10/speeding-up-data-access-by-using-linq-to-sql-or-ef.html#comment-1627</guid>
		<description>Hi,
 no doubt that Linq is a good tool, but I am sure that the stored proc you have take for your test was not really well wrotten, so that is why it seems to you that linq is faster... It is not possible at all in fact, because when using Linq a query is constructed internally and finally that is SQL which is produced and sent to the database server...
 A dba would not construct his statement using different if but would rather bind his parameters and make single sql statement in order to gain performance on the query plan... 
 If you observe the sql generated by Linq it&#039;s pretty sure that all the parameters are bind parameters...
 In all case, reading your article, it seems that Linq have other advantages. I would use it in order to have only one language and not mixing stored procedure and c# code... But for very heavy database job I think that nothing could be better than a well written procedure...</description>
		<content:encoded><![CDATA[<p>Hi,<br />
 no doubt that Linq is a good tool, but I am sure that the stored proc you have take for your test was not really well wrotten, so that is why it seems to you that linq is faster&#8230; It is not possible at all in fact, because when using Linq a query is constructed internally and finally that is SQL which is produced and sent to the database server&#8230;<br />
 A dba would not construct his statement using different if but would rather bind his parameters and make single sql statement in order to gain performance on the query plan&#8230;<br />
 If you observe the sql generated by Linq it&#8217;s pretty sure that all the parameters are bind parameters&#8230;<br />
 In all case, reading your article, it seems that Linq have other advantages. I would use it in order to have only one language and not mixing stored procedure and c# code&#8230; But for very heavy database job I think that nothing could be better than a well written procedure&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 9eFish</title>
		<link>http://www.ytechie.com/2009/10/speeding-up-data-access-by-using-linq-to-sql-or-ef.html/comment-page-1#comment-1625</link>
		<dc:creator>9eFish</dc:creator>
		<pubDate>Wed, 28 Oct 2009 10:07:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.ytechie.com/2009/10/speeding-up-data-access-by-using-linq-to-sql-or-ef.html#comment-1625</guid>
		<description>&lt;strong&gt;使用Linq to Sql 或者 EF加快数据访问速度...&lt;/strong&gt;

9efish.感谢你的文章 - Trackback from 9eFish...</description>
		<content:encoded><![CDATA[<p><strong>使用Linq to Sql 或者 EF加快数据访问速度&#8230;</strong></p>
<p>9efish.感谢你的文章 &#8211; Trackback from 9eFish&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
