<?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>Sat, 04 Feb 2012 19:50:17 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.3</generator>

	<item>
		<title>By: Sidar Ok</title>
		<link>http://www.sidarok.com/web/blog/content/2008/05/02/10-tips-to-improve-your-linq-to-sql-application-performance.html#comment-39312</link>
		<dc:creator>Sidar Ok</dc:creator>
		<pubDate>Tue, 24 Jan 2012 15:34:31 +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-39312</guid>
		<description>No it is not a good practice to use singleton for Linq2SqL because it is not very expensive to create and dispose the data context yet the data context has to be thought as a unit of work - do what you have to do and dispose it.</description>
		<content:encoded><![CDATA[<p>No it is not a good practice to use singleton for Linq2SqL because it is not very expensive to create and dispose the data context yet the data context has to be thought as a unit of work - do what you have to do and dispose it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin Wils</title>
		<link>http://www.sidarok.com/web/blog/content/2008/05/02/10-tips-to-improve-your-linq-to-sql-application-performance.html#comment-38340</link>
		<dc:creator>Kevin Wils</dc:creator>
		<pubDate>Thu, 05 Jan 2012 09:58:24 +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-38340</guid>
		<description>Hi,

Is it a good thing to make use a singleton for a linq context?
Or is this otiose?
For example:

        mmbMainDataContext mainCtx;

        private mmbMainDataContext MainCtx 
        {
            get
            {
                if (mainCtx == null)
                    mainCtx = new mmbMainDataContext();

                return mainCtx;
            }
        }

        protected void btn_generateSiteMaps_Click(object sender, EventArgs e)
        {
            using (MainCtx)
            {
                foreach (var item in MainCtx.tbl_websites)
                {
                    generateSitemap(item.dealerCode, "http://" + item.dnsName, item.languages);
                }    
            }
        }

Thanks for the interesting tips!</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Is it a good thing to make use a singleton for a linq context?<br />
Or is this otiose?<br />
For example:</p>
<p>        mmbMainDataContext mainCtx;</p>
<p>        private mmbMainDataContext MainCtx<br />
        {<br />
            get<br />
            {<br />
                if (mainCtx == null)<br />
                    mainCtx = new mmbMainDataContext();</p>
<p>                return mainCtx;<br />
            }<br />
        }</p>
<p>        protected void btn_generateSiteMaps_Click(object sender, EventArgs e)<br />
        {<br />
            using (MainCtx)<br />
            {<br />
                foreach (var item in MainCtx.tbl_websites)<br />
                {<br />
                    generateSitemap(item.dealerCode, &#8220;http://&#8221; + item.dnsName, item.languages);<br />
                }<br />
            }<br />
        }</p>
<p>Thanks for the interesting tips!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sunil K Patil,Indore</title>
		<link>http://www.sidarok.com/web/blog/content/2008/05/02/10-tips-to-improve-your-linq-to-sql-application-performance.html#comment-33280</link>
		<dc:creator>Sunil K Patil,Indore</dc:creator>
		<pubDate>Thu, 22 Sep 2011 15:43:33 +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-33280</guid>
		<description>Excellent job done.</description>
		<content:encoded><![CDATA[<p>Excellent job done.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mak</title>
		<link>http://www.sidarok.com/web/blog/content/2008/05/02/10-tips-to-improve-your-linq-to-sql-application-performance.html#comment-32549</link>
		<dc:creator>mak</dc:creator>
		<pubDate>Thu, 01 Sep 2011 14:40:18 +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-32549</guid>
		<description>great dude..
thanks ....
it help great.....</description>
		<content:encoded><![CDATA[<p>great dude..<br />
thanks &#8230;.<br />
it help great&#8230;..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mojtaba pourmirzaei</title>
		<link>http://www.sidarok.com/web/blog/content/2008/05/02/10-tips-to-improve-your-linq-to-sql-application-performance.html#comment-31713</link>
		<dc:creator>mojtaba pourmirzaei</dc:creator>
		<pubDate>Thu, 11 Aug 2011 07:53:32 +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-31713</guid>
		<description>thanks item 4 and 7 solve my problems
Iran</description>
		<content:encoded><![CDATA[<p>thanks item 4 and 7 solve my problems<br />
Iran</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hugo</title>
		<link>http://www.sidarok.com/web/blog/content/2008/05/02/10-tips-to-improve-your-linq-to-sql-application-performance.html#comment-30450</link>
		<dc:creator>Hugo</dc:creator>
		<pubDate>Wed, 13 Jul 2011 07:27:14 +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-30450</guid>
		<description>Awesomeness ! Bookmark that!</description>
		<content:encoded><![CDATA[<p>Awesomeness ! Bookmark that!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sunil P</title>
		<link>http://www.sidarok.com/web/blog/content/2008/05/02/10-tips-to-improve-your-linq-to-sql-application-performance.html#comment-28203</link>
		<dc:creator>Sunil P</dc:creator>
		<pubDate>Wed, 25 May 2011 04:38:00 +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-28203</guid>
		<description>Excellent article... some tips really helped to improve performance of my app</description>
		<content:encoded><![CDATA[<p>Excellent article&#8230; some tips really helped to improve performance of my app</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sidar Ok</title>
		<link>http://www.sidarok.com/web/blog/content/2008/05/02/10-tips-to-improve-your-linq-to-sql-application-performance.html#comment-21268</link>
		<dc:creator>Sidar Ok</dc:creator>
		<pubDate>Sat, 08 Jan 2011 13:54:00 +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-21268</guid>
		<description>Very happy to see that this article is still useful to some after 3 years that it has been written and the product is nearly completely castrated by Microsoft to support EF.</description>
		<content:encoded><![CDATA[<p>Very happy to see that this article is still useful to some after 3 years that it has been written and the product is nearly completely castrated by Microsoft to support EF.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Agame</title>
		<link>http://www.sidarok.com/web/blog/content/2008/05/02/10-tips-to-improve-your-linq-to-sql-application-performance.html#comment-17931</link>
		<dc:creator>Agame</dc:creator>
		<pubDate>Thu, 11 Nov 2010 19:20:37 +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-17931</guid>
		<description>Great list of Linq tips - thank you!</description>
		<content:encoded><![CDATA[<p>Great list of Linq tips - thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Andrew</title>
		<link>http://www.sidarok.com/web/blog/content/2008/05/02/10-tips-to-improve-your-linq-to-sql-application-performance.html#comment-17529</link>
		<dc:creator>Mark Andrew</dc:creator>
		<pubDate>Wed, 03 Nov 2010 10:55:26 +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-17529</guid>
		<description>Really helpful ideas! I used a combination of the tricks to help improve the performance of 6 LINQ queries I was working on.

One of the biggest improvements came from adding a ".ToList()" to the end of each of my LINQ queries before continuing to process them! I think it give me a performance increase of AT LEAST 50% which was excellent!

Thanks again,


Mark</description>
		<content:encoded><![CDATA[<p>Really helpful ideas! I used a combination of the tricks to help improve the performance of 6 LINQ queries I was working on.</p>
<p>One of the biggest improvements came from adding a &#8220;.ToList()&#8221; to the end of each of my LINQ queries before continuing to process them! I think it give me a performance increase of AT LEAST 50% which was excellent!</p>
<p>Thanks again,</p>
<p>Mark</p>
]]></content:encoded>
	</item>
</channel>
</rss>

