SQL Server connection string Asynchronous Processing=true

前端 未结 5 2057
青春惊慌失措
青春惊慌失措 2020-12-15 08:10

I am using .Net 2.0 + SQL Server 2005 Enterprise + VSTS 2008 + C# + ADO.Net to develop ASP.Net Web application.

My question is, if I am using Asynchronous Proc

5条回答
  •  情书的邮戳
    2020-12-15 08:45

    I've just tested performance of sync database calls with ASYNC=TRUE and ASYNC=FALSE. I was concerned about:

    A: Definitely, only use ASYNC=TRUE when you know that you are going to be using the async functionality

    I can say that the performance is exactly the same. I tested in Azure web role under high load and calculated average for big number of requests.

    So if your application uses different types of database queries (sync and async) you can freely set Asynchronous Processing=true and use this connection for both sync and async queries. It will also keep your connection pool smaller, I believe.

提交回复
热议问题