我有一个按消耗计划运行的 Azure 函数。当函数负载很重时,我一直收到System.InvalidOperationException这样的消息The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached.
我正在使用依赖项注入,到目前为止,我一直在使用AddDbContextPool. 是否建议将 DbContext 池用于 Azure Functions,还是我应该使用AddDbContext?
我的 SQL Server 的连接字符串仅指定服务器和身份验证,这意味着默认情况下也应启用连接池。Azure Functions 是否也建议使用连接池?
我试过以下没有运气:
a:visited
{
font-weight: bold;
}
Run Code Online (Sandbox Code Playgroud)
编辑:删除":"后的空格,但它仍然无法正常工作.