<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : Increasing timeout for all the queries</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Increasing timeout for all the queries</description>
  <pubDate>Fri, 10 Apr 2026 23:53:30 -700</pubDate>
  <lastBuildDate>Mon, 10 Mar 2014 16:04:36 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=3351</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>Increasing timeout for all the queries : Hi Thomax,This feature has yet...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3351&amp;PID=17399#17399</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=912" rel="nofollow">DenisK</a><br /><strong>Subject:</strong> 3351<br /><strong>Posted:</strong> 10-Mar-2014 at 4:04pm<br /><br />Hi Thomax,<div><br></div><div>This feature has yet to be implemented.</div><div><br></div><div>But you are correct. If you are setting the CommandTimeout in the Querying event, then that will set the timeouts for each query that goes out.</div><div><br></div><div>Please be aware that the query timeouts is but one of many timeouts that you should be aware of.</div><div><br></div><div>See&nbsp;<a href="http://drc.ideablade.com/xwiki/bin/view/&#068;ocumentati&#111;n/understand-timeouts" target="_blank">here&nbsp;</a>for more info on various timeouts.</div>]]>
   </description>
   <pubDate>Mon, 10 Mar 2014 16:04:36 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3351&amp;PID=17399#17399</guid>
  </item> 
  <item>
   <title>Increasing timeout for all the queries :  Hi DenisK,Any news for thisfeature?...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3351&amp;PID=17398#17398</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=407" rel="nofollow">Thomax</a><br /><strong>Subject:</strong> 3351<br /><strong>Posted:</strong> 10-Mar-2014 at 5:18am<br /><br />Hi DenisK,<div><br></div><div>Any news for this&nbsp;<span style=": rgb251, 251, 253; font-size: 12px; line-height: 1.4;">feature? Can I use the&nbsp;</span>below code for setting&nbsp;CommandTimeout&nbsp;for all the queries?</div><div><span style=": rgb251, 251, 253;"><table width="99%"><tr><td><pre class="BBcode"></span></div><div><span ="apple-tab-span"="" style="white-space:pre">	</span>&nbsp; &nbsp; var MyEntityManager1 = new MyEntityManager();</div><div><br></div><div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;MyEntityManager1.Querying += (s1, e1) =&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; e1.Query.CommandTimeout = 300;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; };<span style=": rgb251, 251, 253; font-size: 12px; line-height: 1.4;"></pre></td></tr></table></span></div></div><div><br></div><div>......</div><span style="font-size:10px"><br /><br />Edited by Thomax - 10-Mar-2014 at 5:22am</span>]]>
   </description>
   <pubDate>Mon, 10 Mar 2014 05:18:23 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3351&amp;PID=17398#17398</guid>
  </item> 
  <item>
   <title>Increasing timeout for all the queries : Hi Seb,This feature is not in...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3351&amp;PID=14058#14058</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=912" rel="nofollow">DenisK</a><br /><strong>Subject:</strong> 3351<br /><strong>Posted:</strong> 18-Jul-2012 at 12:41pm<br /><br />Hi Seb,<div><br></div><div>This feature is not in 6.1.8. I don't currently have a timeline on when this will be implemented but I have moved it up the priority list.&nbsp;</div><div><br></div><div>FYI, this feature number is F1930. You can always check our <a href="http://drc.ideablade.com/xwiki/bin/view/&#068;ocumentati&#111;n/release-notes" target="_blank">Release Notes</a>&nbsp;to find out the features and defects in a DevForce version.</div>]]>
   </description>
   <pubDate>Wed, 18 Jul 2012 12:41:09 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3351&amp;PID=14058#14058</guid>
  </item> 
  <item>
   <title>Increasing timeout for all the queries : Hi,May I know if this feature...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3351&amp;PID=14048#14048</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=370" rel="nofollow">sebma</a><br /><strong>Subject:</strong> 3351<br /><strong>Posted:</strong> 18-Jul-2012 at 3:08am<br /><br />Hi,<div><br></div><div>May I know if this feature to increase timeout for all queries is available in&nbsp;<span style="text-align: left; ">DevForce 2010 v6.1.8 ?</span></div><div><span style="text-align: left; ">I asked because it is ridiculously stupid to search all codes looking for queries and set timeout individually.</span></div><div><span style="text-align: left; "><br></span></div><div><span style="text-align: left; ">Thanks</span></div><div><span style="text-align: left; ">Seb</span></div>]]>
   </description>
   <pubDate>Wed, 18 Jul 2012 03:08:58 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3351&amp;PID=14048#14048</guid>
  </item> 
  <item>
   <title>Increasing timeout for all the queries : Hi all,For DevForce 2009 only,...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3351&amp;PID=13205#13205</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=370" rel="nofollow">sebma</a><br /><strong>Subject:</strong> 3351<br /><strong>Posted:</strong> 03-Apr-2012 at 1:58am<br /><br />Hi all,<div><br></div><div>For DevForce 2009 only, perhaps a not so elegant workaround (till we have the IdeaBlade solution), is to set CommandTimeout at ADO.NET EF level. Implement the partial method&nbsp;OnContextCreated() found in your EDMX data model context class. For example:</div><div><br></div><div><div>&nbsp; &nbsp; // See your EDMX's Designer.cs class for your Context class</div><div>&nbsp; &nbsp; public partial class YOUR_DataModelContext : global::System.Data.Objects.ObjectContext</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; /// &lt;summary&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; /// &lt;para&gt;Properties of this data model's context will be set here.&lt;/para&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; /// &lt;para&gt;CommandTimeout will be prolonged to avoid unnecessary SQL timeout.&lt;/para&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; /// &lt;para&gt;If SqlTimeoutInSeconds from AppSettings section is not found or set, CommandTimeout will not be set, hence its value will be ADO.NET default.&lt;/para&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; /// &lt;/summary&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; partial void OnContextCreated()</div><div>&nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int timeoutFromConfig = GetCommandTimeoutFromConfig();</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (timeoutFromConfig &gt; 0)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; this.CommandTimeout = timeoutFromConfig; //60 * 30; // 60secs * 30 = 1800secs = 30mins</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; }</div></div><div><br></div><div>WARNING! Setting CommandTimeout at ADO.NET EF level will cause it to be applied globally to all projects that reference your EDMX assembly.</div><div><br></div><div><br></div><div><br></div><div><br></div>]]>
   </description>
   <pubDate>Tue, 03 Apr 2012 01:58:48 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3351&amp;PID=13205#13205</guid>
  </item> 
  <item>
   <title>Increasing timeout for all the queries :  Hi sebma,Thank you for the feedback....</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3351&amp;PID=13143#13143</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=912" rel="nofollow">DenisK</a><br /><strong>Subject:</strong> 3351<br /><strong>Posted:</strong> 28-Mar-2012 at 12:02pm<br /><br />Hi sebma,<div><br></div><div>Thank you for the feedback. I've added this to our feature request list.</div><span style="font-size:10px"><br /><br />Edited by DenisK - 28-Mar-2012 at 12:33pm</span>]]>
   </description>
   <pubDate>Wed, 28 Mar 2012 12:02:23 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3351&amp;PID=13143#13143</guid>
  </item> 
  <item>
   <title>Increasing timeout for all the queries : Hi Denis,In a reasonably-sized...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3351&amp;PID=13137#13137</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=370" rel="nofollow">sebma</a><br /><strong>Subject:</strong> 3351<br /><strong>Posted:</strong> 28-Mar-2012 at 1:17am<br /><br /><div>Hi Denis,</div><div><br></div><div>In a reasonably-sized app, backend apps in particular, there are queries everywhere.</div><div><br></div><div>Instead of hunting high and low for each EntityQuery.CommandTimeout, is there any future plan to have a "global" setting for SQL timeout (by config or programmatically), much like your QueryStrategy options pertaining to an EntityManager ?</div><div><br></div><div>Thanks</div><div>-Seb</div>]]>
   </description>
   <pubDate>Wed, 28 Mar 2012 01:17:15 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3351&amp;PID=13137#13137</guid>
  </item> 
  <item>
   <title>Increasing timeout for all the queries : Hi Paolo,I want to apologize before...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3351&amp;PID=13093#13093</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=912" rel="nofollow">DenisK</a><br /><strong>Subject:</strong> 3351<br /><strong>Posted:</strong> 23-Mar-2012 at 12:32pm<br /><br />Hi Paolo,<div><br></div><div>I want to apologize before hand as I believe I gave you the wrong information above. In my post, I was implying that CommandTimeout is the same as TransactionTimeout and the SendTimeout in the web.config. In reality they're not. There are apparently different timeouts that you can set. I don't fully understand the timeouts as well but I know that they are:</div><div><br></div><div>1. Database timeout - Can be set by using EntityQuery.CommandTimeout</div><div><br></div><div>2. Transaction timeout - Can be set by using the TransactionSettings which in turn passed into the QueryStrategy</div><div><br></div><div>3. WCF communication timeouts - These are the sendTimeout, receiveTimeout, etc settings in the .config file.</div><div><br></div><div>4. and finally IIS timeouts</div><div><br></div><div>Yes, we have a lot of timeouts to deal with.&nbsp;</div><div><br></div><div>Answering your specific question, no, there is not a way to set the CommandTimeout globally. Unfortunately you have to set it manually per query.</div>]]>
   </description>
   <pubDate>Fri, 23 Mar 2012 12:32:24 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3351&amp;PID=13093#13093</guid>
  </item> 
  <item>
   <title>Increasing timeout for all the queries : Hello Denisk,thanks for your reply......</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3351&amp;PID=13082#13082</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1136" rel="nofollow">pponzano</a><br /><strong>Subject:</strong> 3351<br /><strong>Posted:</strong> 23-Mar-2012 at 12:36am<br /><br />Hello Denisk,<br>thanks for your reply... I've kist read the section on drc...in fact setting the CommandTymeout in the query fix my problem... for your first suggestion (setting in web.config I've set it but as far I've seen it only sets the WCF timeout...my problem is with the SQL Timeout expired, in fact I've seen that the CommandTimeout is 0 ... since I don't usedirect queries but everything passes via stored procedure... I don't care if all the timeouts are at 3 minutes..<br><br>Thanks<br>]]>
   </description>
   <pubDate>Fri, 23 Mar 2012 00:36:40 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3351&amp;PID=13082#13082</guid>
  </item> 
  <item>
   <title>Increasing timeout for all the queries :  Hi Paolo,Setting the timeout...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3351&amp;PID=13064#13064</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=912" rel="nofollow">DenisK</a><br /><strong>Subject:</strong> 3351<br /><strong>Posted:</strong> 22-Mar-2012 at 11:34am<br /><br />Hi Paolo,<div><br></div><div>Setting the timeout in web.config will set it globally for all queries, not just for stored procs. But it is an option. See&nbsp;<a href="http://drc.ideablade.com/xwiki/bin/view/&#068;ocumentati&#111;n/code-sample-custom-client-servicemodel#HChangetimeoutvalues" target="_blank">http://drc.ideablade.com/xwiki/bin/view/Documentation/code-sample-custom-client-servicemodel#HChangetimeoutvalues</a></div><div><br></div><div>If you just want to set it for stored procs, you can wrap the query in a TransactionScope. For example:</div><div><br></div><div><table width="99%"><tr><td><pre class="BBcode"></div><div><div>&nbsp; &nbsp; &nbsp; // create a querystrategy that has a 240 second timeout</div><div>&nbsp; &nbsp; &nbsp; TransactionSettings settings = new TransactionSettings(System.Transactions.IsolationLevel.Serializable,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; new TimeSpan(0, 0, 0, 240, 0));</div><div>&nbsp; &nbsp; &nbsp; QueryStrategy qs = new QueryStrategy(QueryStrategy.Normal, settings);</div><div>&nbsp; &nbsp; &nbsp; var sp1 = mgr.StoredProcQuery1();</div><div>&nbsp; &nbsp; &nbsp; var sp2 = mgr.StoredProcQuery2();</div><div>&nbsp; &nbsp; &nbsp; sp1.With(qs).Execute();</div><div>&nbsp; &nbsp; &nbsp; sp2.With(qs).Execute();</div></div><div></pre></td></tr></table></div><div><br></div><div>Here's a section on our DRC that may help you better understand timeouts.&nbsp;<a href="http://drc.ideablade.com/xwiki/bin/view/&#068;ocumentati&#111;n/understand-timeouts" target="_blank">http://drc.ideablade.com/xwiki/bin/view/Documentation/understand-timeouts</a></div><span style="font-size:10px"><br /><br />Edited by DenisK - 22-Mar-2012 at 11:35am</span>]]>
   </description>
   <pubDate>Thu, 22 Mar 2012 11:34:12 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3351&amp;PID=13064#13064</guid>
  </item> 
  <item>
   <title>Increasing timeout for all the queries : Hello,in my application I call...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3351&amp;PID=13044#13044</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1136" rel="nofollow">pponzano</a><br /><strong>Subject:</strong> 3351<br /><strong>Posted:</strong> 21-Mar-2012 at 3:22am<br /><br />Hello,<br>in my application I call stored procedures using <br><br>&nbsp;&nbsp; StoredProcQuery query = entityManagerProvider.Manager.SP_MY_STORE(....);<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; EntityQueryOperation op = query.ExecuteAsync();<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return op.OnComplete(onSuccess, onFail).AsOperationResult&lt;myResultType&gt;();<br><br>without specifing the query.CommandTimeout = 240;<br><br>Since the DBAs are integrating the logic of some stored procedure and the execution time is increasing I wish to set the CommandTimeout for alll the StoredProcQuery I'm to use... is there a way of specifing it in the web.config?&nbsp; or in another place, just not to write this line everywhere?<br><br>Thanks<br>Paolo<br>]]>
   </description>
   <pubDate>Wed, 21 Mar 2012 03:22:33 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3351&amp;PID=13044#13044</guid>
  </item> 
 </channel>
</rss>