<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.3" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: 10 Tips to Improve your LINQ to SQL Application Performance</title>
	<link>http://www.sidarok.com/web/blog/content/2008/05/02/10-tips-to-improve-your-linq-to-sql-application-performance.html</link>
	<description>still believes in coding to make dreams come true</description>
	<pubDate>Sun, 01 Aug 2010 02:20:34 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.3</generator>

	<item>
		<title>By: Dev Links &#171; Blogosphere</title>
		<link>http://www.sidarok.com/web/blog/content/2008/05/02/10-tips-to-improve-your-linq-to-sql-application-performance.html#comment-10942</link>
		<dc:creator>Dev Links &#171; Blogosphere</dc:creator>
		<pubDate>Sun, 27 Dec 2009 01:20:16 +0000</pubDate>
		<guid>http://www.sidarok.com/web/blog/content/2008/05/02/10-tips-to-improve-your-linq-to-sql-application-performance.html#comment-10942</guid>
		<description>[...] 10 Tips to Improve your LINQ to SQL Application Performance [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] 10 Tips to Improve your LINQ to SQL Application Performance [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rik</title>
		<link>http://www.sidarok.com/web/blog/content/2008/05/02/10-tips-to-improve-your-linq-to-sql-application-performance.html#comment-10860</link>
		<dc:creator>Rik</dc:creator>
		<pubDate>Wed, 23 Dec 2009 17:41:11 +0000</pubDate>
		<guid>http://www.sidarok.com/web/blog/content/2008/05/02/10-tips-to-improve-your-linq-to-sql-application-performance.html#comment-10860</guid>
		<description>Regarding #5 (turning off Optimistic Concurrency).  If the SQL CE database is only being used in a read-only scenario would you still need to set UpdateCheck to Never?  I would think since there are no UPDATEs or INSERTs that this attribute wouldn't really factor into performance.  Am I correct about this?</description>
		<content:encoded><![CDATA[<p>Regarding #5 (turning off Optimistic Concurrency).  If the SQL CE database is only being used in a read-only scenario would you still need to set UpdateCheck to Never?  I would think since there are no UPDATEs or INSERTs that this attribute wouldn&#8217;t really factor into performance.  Am I correct about this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oleg Bessonov</title>
		<link>http://www.sidarok.com/web/blog/content/2008/05/02/10-tips-to-improve-your-linq-to-sql-application-performance.html#comment-10794</link>
		<dc:creator>Oleg Bessonov</dc:creator>
		<pubDate>Sat, 19 Dec 2009 22:20:28 +0000</pubDate>
		<guid>http://www.sidarok.com/web/blog/content/2008/05/02/10-tips-to-improve-your-linq-to-sql-application-performance.html#comment-10794</guid>
		<description>I have my two cents as a small fix of 9th paging tip. Just about order Skip and Take calls. The right order is:

    return context.Products
           .Skip(startingPageIndex * pageSize)
           .Take(pageSize)
           .ToList();

Thanks for your tips.</description>
		<content:encoded><![CDATA[<p>I have my two cents as a small fix of 9th paging tip. Just about order Skip and Take calls. The right order is:</p>
<p>    return context.Products<br />
           .Skip(startingPageIndex * pageSize)<br />
           .Take(pageSize)<br />
           .ToList();</p>
<p>Thanks for your tips.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Florim Maxhuni</title>
		<link>http://www.sidarok.com/web/blog/content/2008/05/02/10-tips-to-improve-your-linq-to-sql-application-performance.html#comment-10536</link>
		<dc:creator>Florim Maxhuni</dc:creator>
		<pubDate>Wed, 09 Dec 2009 09:15:22 +0000</pubDate>
		<guid>http://www.sidarok.com/web/blog/content/2008/05/02/10-tips-to-improve-your-linq-to-sql-application-performance.html#comment-10536</guid>
		<description>What about Singel DataContext for request in WebProject i thing this will also improve performance.</description>
		<content:encoded><![CDATA[<p>What about Singel DataContext for request in WebProject i thing this will also improve performance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carlos Porras (El Salvador)</title>
		<link>http://www.sidarok.com/web/blog/content/2008/05/02/10-tips-to-improve-your-linq-to-sql-application-performance.html#comment-10150</link>
		<dc:creator>Carlos Porras (El Salvador)</dc:creator>
		<pubDate>Thu, 26 Nov 2009 16:50:53 +0000</pubDate>
		<guid>http://www.sidarok.com/web/blog/content/2008/05/02/10-tips-to-improve-your-linq-to-sql-application-performance.html#comment-10150</guid>
		<description>Hi,

I've been reading about Dynamic Data websites and I have found that you can't use more than a single DataContext in the global.asax file.

So, if you have decided to use as many LINQ to SQL classes as the best alternative for not overloading your system with a huge file (my project has more than a 140 tables until now) as it is recommended in your blog by means of making shorter pieces of code, avoiding the problems you could have by instantiating unnecessary classes when they are not required.

As I have tried, you can't have both. You can't have many DataContexts but not inside a Dynamic Project.

My question is: How can you combine both techniques as to produce the initial and valuable scaffolding CRUD design provided by the ASP.Net 3.5 that had help me a lot in debugging and building a proper ERD with the right primary and foreign keys. I have been using extensively an ERD based upon the use of referential integrity at its best as to produce all filtering that is required by the Dynamic Data design.


On my side: If I were to have more than one DataContext inside a DynamicData website, how can I configure the global.aspx files as to use any of them depending on what DataContext I am intereste to use (different DataContext wouldn't elt you instantiate teh same object into different contexts. It will give you an error message at compile time)


As I said: it could be very convenient having those two techniques used at once but if you have one you can't have the other.


That's my point.

I'm I correct</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I&#8217;ve been reading about Dynamic Data websites and I have found that you can&#8217;t use more than a single DataContext in the global.asax file.</p>
<p>So, if you have decided to use as many LINQ to SQL classes as the best alternative for not overloading your system with a huge file (my project has more than a 140 tables until now) as it is recommended in your blog by means of making shorter pieces of code, avoiding the problems you could have by instantiating unnecessary classes when they are not required.</p>
<p>As I have tried, you can&#8217;t have both. You can&#8217;t have many DataContexts but not inside a Dynamic Project.</p>
<p>My question is: How can you combine both techniques as to produce the initial and valuable scaffolding CRUD design provided by the ASP.Net 3.5 that had help me a lot in debugging and building a proper ERD with the right primary and foreign keys. I have been using extensively an ERD based upon the use of referential integrity at its best as to produce all filtering that is required by the Dynamic Data design.</p>
<p>On my side: If I were to have more than one DataContext inside a DynamicData website, how can I configure the global.aspx files as to use any of them depending on what DataContext I am intereste to use (different DataContext wouldn&#8217;t elt you instantiate teh same object into different contexts. It will give you an error message at compile time)</p>
<p>As I said: it could be very convenient having those two techniques used at once but if you have one you can&#8217;t have the other.</p>
<p>That&#8217;s my point.</p>
<p>I&#8217;m I correct</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martin</title>
		<link>http://www.sidarok.com/web/blog/content/2008/05/02/10-tips-to-improve-your-linq-to-sql-application-performance.html#comment-6894</link>
		<dc:creator>Martin</dc:creator>
		<pubDate>Tue, 21 Jul 2009 08:33:36 +0000</pubDate>
		<guid>http://www.sidarok.com/web/blog/content/2008/05/02/10-tips-to-improve-your-linq-to-sql-application-performance.html#comment-6894</guid>
		<description>In Item 3, surely GetCategoriesWithMoreThanFiveProducts is still compiled every time you call it? If you really want it to return the same instance every time, you'd need to use a Singleton pattern.
That is, unless the CompiledQuery.Compile has the responsibility of storing and retrieving the Compiled instances. I can't find any documentation that seems to suggest that's what it does.

It's the equivalent of creating a Compiled Regex, but not caching it.</description>
		<content:encoded><![CDATA[<p>In Item 3, surely GetCategoriesWithMoreThanFiveProducts is still compiled every time you call it? If you really want it to return the same instance every time, you&#8217;d need to use a Singleton pattern.<br />
That is, unless the CompiledQuery.Compile has the responsibility of storing and retrieving the Compiled instances. I can&#8217;t find any documentation that seems to suggest that&#8217;s what it does.</p>
<p>It&#8217;s the equivalent of creating a Compiled Regex, but not caching it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Justin</title>
		<link>http://www.sidarok.com/web/blog/content/2008/05/02/10-tips-to-improve-your-linq-to-sql-application-performance.html#comment-6633</link>
		<dc:creator>Justin</dc:creator>
		<pubDate>Wed, 17 Jun 2009 18:59:50 +0000</pubDate>
		<guid>http://www.sidarok.com/web/blog/content/2008/05/02/10-tips-to-improve-your-linq-to-sql-application-performance.html#comment-6633</guid>
		<description>I can't get Tip#8 to work either, i'm having the same problem as Kyo.</description>
		<content:encoded><![CDATA[<p>I can&#8217;t get Tip#8 to work either, i&#8217;m having the same problem as Kyo.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kyo</title>
		<link>http://www.sidarok.com/web/blog/content/2008/05/02/10-tips-to-improve-your-linq-to-sql-application-performance.html#comment-6574</link>
		<dc:creator>Kyo</dc:creator>
		<pubDate>Sun, 31 May 2009 17:32:16 +0000</pubDate>
		<guid>http://www.sidarok.com/web/blog/content/2008/05/02/10-tips-to-improve-your-linq-to-sql-application-performance.html#comment-6574</guid>
		<description>Very useful ! 
But it cause some problem in Tip #8 

var a = from c in context.Categories
  select new Category
  {
    CategoryID = c.CategoryID,
    CategoryName = c.CategoryName,
    Description = c.Description
  };
Raise an exception Explicit construction of entity type '###' in query is not allowed . Because 'Category' is a Entity was generated by LinqToSQL class. Can someone solved it ? 
Thanks again !</description>
		<content:encoded><![CDATA[<p>Very useful !<br />
But it cause some problem in Tip #8 </p>
<p>var a = from c in context.Categories<br />
  select new Category<br />
  {<br />
    CategoryID = c.CategoryID,<br />
    CategoryName = c.CategoryName,<br />
    Description = c.Description<br />
  };<br />
Raise an exception Explicit construction of entity type &#8216;###&#8217; in query is not allowed . Because &#8216;Category&#8217; is a Entity was generated by LinqToSQL class. Can someone solved it ?<br />
Thanks again !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jomit</title>
		<link>http://www.sidarok.com/web/blog/content/2008/05/02/10-tips-to-improve-your-linq-to-sql-application-performance.html#comment-6231</link>
		<dc:creator>Jomit</dc:creator>
		<pubDate>Fri, 17 Apr 2009 07:35:38 +0000</pubDate>
		<guid>http://www.sidarok.com/web/blog/content/2008/05/02/10-tips-to-improve-your-linq-to-sql-application-performance.html#comment-6231</guid>
		<description>Great Post !!!

Just marked this for the link of month list,

Cheers,
Jomit</description>
		<content:encoded><![CDATA[<p>Great Post !!!</p>
<p>Just marked this for the link of month list,</p>
<p>Cheers,<br />
Jomit</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: murat</title>
		<link>http://www.sidarok.com/web/blog/content/2008/05/02/10-tips-to-improve-your-linq-to-sql-application-performance.html#comment-6219</link>
		<dc:creator>murat</dc:creator>
		<pubDate>Wed, 15 Apr 2009 12:17:57 +0000</pubDate>
		<guid>http://www.sidarok.com/web/blog/content/2008/05/02/10-tips-to-improve-your-linq-to-sql-application-performance.html#comment-6219</guid>
		<description>L2S is dead</description>
		<content:encoded><![CDATA[<p>L2S is dead</p>
]]></content:encoded>
	</item>
</channel>
</rss>
