如何增加executionTimeout了长时间运行的查询? [英] How to increase executionTimeout for a long-running query?

查看:2048
本文介绍了如何增加executionTimeout了长时间运行的查询?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用程序,一个查询需要3分钟来执行。我发现默认ExecutionTimeout值是110秒。我试图将其更改为500(秒),但它并没有解决我的问题。地方我发现,设置<编译调试=假> 允许配置在 ExecutionTimeout 属性。然而,即使这并没有解决我的问题。

In my application, one query takes 3 minutes to execute. I found that Default ExecutionTimeout value is 110 sec.I tried to change this to 500 (seconds) but it didn't fix my problem. Somewhere I found that setting <compilation debug="false"> allows the ExecutionTimeout property to be configured. However, even this didn't solve my problem.

有谁知道我怎么能增加执行超时了长时间运行的查询?

Does anyone know how I can increase the execution timeout for a long-running query?

推荐答案

执行超时是 .NET 90秒框架1.0和1.1,110秒否则

Execution Timeout is 90 seconds for .NET Framework 1.0 and 1.1, 110 seconds otherwise.

如果您需要更改在&LT,你需要做的是在你的的web.config defult设置;的httpRuntime&GT;

If you need to change defult settings you need to do it in your web.config under <httpRuntime>

<httpRuntime executionTimeout = "number(in seconds)"/>

但要记住:

此超时只适用于在编译元素中的调试属性为false。

This time-out applies only if the debug attribute in the compilation element is False.

在了解编译元素已经详细看看

有看看这个文件有关的httpRuntime元素

这篇关于如何增加executionTimeout了长时间运行的查询?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆