[英]Very slow database connection open for MSDASQL provider on IIS Express
I have found when using the MSDASQL provider in classic asp on IIS Express that opening the ADODB database connection is slow (between 2 and 8 seconds). 在IIS Express的经典ASP中使用MSDASQL提供程序时,我发现打开ADODB数据库连接的速度很慢(介于2到8秒之间)。
Also it seems to queue other things up, as in the IIS trace I'm also seeing that sometimes the event ASP_DEQUEUE_REQUEST can take 8 seconds. 同样,它似乎也使其他事情排队,例如在IIS跟踪中,我还看到有时ASP_DEQUEUE_REQUEST事件可能需要8秒钟。
I have just found a workaround in the surface area configuration to allow remote connections to the database server it works fine. 我刚刚在外围应用配置中找到了一种解决方法,以允许远程连接到工作正常的数据库服务器。
However I don't particularly want to enable remote connections, so I'm wondering if anyone knows that background to this problem. 但是,我并不是特别想启用远程连接,所以我想知道是否有人知道此问题的背景。 I have done extensive research and not found anything yet.
我已经进行了广泛的研究,还没有发现任何东西。
I've tried alternative providers and using ".", localhost etc etc. 我尝试了替代提供程序,并使用“。”,localhost等。
Any ideas? 有任何想法吗?
I'm thinking perhaps it's something to do with connection pooling? 我在想也许与连接池有关? But I don't have any settings defined for this, so I'm assuming it's using the defaults.
但是我没有为此定义任何设置,因此我假设它正在使用默认值。
-thanks Alex. -感谢Alex。
MSDASQL has been depricated. MSDASQL已被描述。
This article explains the alternatives. 本文介绍了替代方法。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.