gpt4 book ai didi

sql-server - 最快的 SQL Server 协议(protocol)?

转载 作者:行者123 更新时间:2023-12-02 10:00:10 27 4
gpt4 key购买 nike

最快的 SQL Server 连接协议(protocol)是什么?

相关:哪些协议(protocol)可以远程使用,哪些可以本地使用,这会影响最快协议(protocol)的选择吗?

最佳答案

威盛。这是最快的 SQL 协议(protocol),它在专用硬件上运行,用于进行 SQL Server 基准测试记录。

Note that the VIA protocol is deprecated by Microsoft, and will be removed in a future version of Microsoft SQL Server. It is however supported in SQL Server 2008, SQL Server 2008 R2 and SQL Server 2012.

共享内存性能次之,但它仅适用于实际上可以共享内存的客户端和服务器之间,因此仅限于本地。

对于普通硬件上的远程连接,TCP 是最佳选择。在正常操作下,它具有与命名管道相同的性能。在缓慢或繁忙的网络上,它在鲁棒性和速度方面优于 NP,这是事实 documented in MSDN :

For named pipes, network communications are typically more interactive. A peer does not send data until another peer asks for it using a read command. A network read typically involves a series of peek named pipes messages before it starts to read the data. These can be very costly in a slow network and cause excessive network traffic, which in turn affects other network clients.

命名管道也可能导致客户端连接超时:

TCP/IP Sockets also support a backlog queue. This can provide a limited smoothing effect compared to named pipes that could lead to pipe-busy errors when you are trying to connect to SQL Server.

不幸的是,正常的客户端配置首先尝试 NP,这可能会导致连接问题(出于上述原因),其中在客户端网络配置上强制使用 TCP(或在连接字符串中,通过 tcp:servername)跳过 NP 连接尝试并直接进入 TCP,以获得更好的负载体验。

现在我确实在上面引用的同一个链接继续称赞 NP 易于配置,很可能是指无需在防火墙中打开 SQL TCP 端口,但我和 BOL 是否有不同的看法。

关于sql-server - 最快的 SQL Server 协议(protocol)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1138559/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com