Connection pooling in SQL SERVER (express)- recommended amount?

后端 未结 3 1934
南笙
南笙 2021-01-07 13:12

is there a recommended amount of connections fro each application i have for use with connection pooling.., my apps are using asp.net and c# against sql express on the \"sam

相关标签:
3条回答
  • 2021-01-07 13:29

    The number of connections does matter little. You can let the connection pool size at the default 100.

    What matters is the number of requests. One of the limitations of SQL Express is that it only runs one scheduler, so in effect it utilizes only one CPU core. This limits the number of requests that can be processed. There is no hard limit, is just that the one CPU core will be able to handle only a certain amount of work before you start noticing performance degradation in your applications (requests take longer to complete).

    The second important limitation of Express is the 1 GB max buffer pool size. This limits the amount of data that can be cached and the size of the procedure cache. The result is shorter page in-memory lifetime and higher I/O, as well as more often compilations of plans. All these again contribute to gradual performance degradation.

    As you see with SQL Express there is no hard limit you reach and it stops working, is just that is constrained in what hardware resources it allocates and the result is a limited overall throughput. As you approach that throughput limit, performance start to degrade.

    On the older version MSDE there was a query limit of 5 concurrent requests, on the 6th requests the MSDE engine would artificially slow itself down.

    0 讨论(0)
  • 2021-01-07 13:34

    It will depend on what version of sql server you're using, but for SQL Server 2005 express there is no limitation on connections, so you should be fine.

    The limitations are indicated here

    0 讨论(0)
  • 2021-01-07 13:41

    SQL Express can handle the same amount of connections in theory as it's big brother SQL Server, which is 32,767. However ... SQL Express would run into it's memory limit far before it'd ever get to that number since it's limited to using 1 GB of RAM.

    0 讨论(0)
提交回复
热议问题