sql并行度
In this article, we will discuss how the Max Degree of Parallelism works in SQL Server and how does it improve the query performance. SQL Server Degree of Parallelism is the processor conveyance parameter for a SQL Server operation, and it chooses the maximum number of execution distribution with the parallel use of different logical CPUs for the SQL Server request. Microsoft SQL Server allows setting this Degree of Parallelism parameter value at the SQL Server instance level or Query level. If you do not specify the SQL Server Degree of Parallelism value at the SQL Server instance, then each request or operation has to rely on SQL Server default value and random CPU allocations.
在本文中,我们将讨论最大并行度在SQL Server中的工作方式以及它如何提高查询性能。 SQL Server并行度是SQL Server操作的处理器传输参数,它选择并行执行SQL Server请求的不同逻辑CPU来选择最大执行分配数。 Microsoft SQL Server允许在SQL Server实例级别或查询级别设置此并行度参数值。 如果未在SQL Server实例中指定SQL Server并行度值,则每个请求或操作都必须依赖SQL Server默认值和随机CPU分配。
SQL Server Degree of Parallelism is especially helpful to the Database Warehouse query engine, Telecommunication database, and partitioned table-based database. The Degree of Parallelism parameter should be configured with small computation and data usage analysis. The default value is 0 at the SQL Server instance level, which relied on the database engine to use several logical CPUs as required by the SQL Server Query.
SQL Server并行度对数据库仓库查询引擎,电信数据库和基于分区表的数据库特别有用。 并行度参数应通过较小的计算和数据使用分析进行配置。 在SQL Server实例级别,默认值为0,这取决于数据库引擎根据SQL Server查询的要求使用多个逻辑CPU。
使用SSMS配置SQL Server最大并行度 (Configuring SQL Server Max Degree of Parallelism using SSMS)
SQL Server Management Studio (SSMS) >> Right-click on the SQL Server Instance > properties >> Advanced >> Max Degree of Parallelism
SQL Server Management Studio(SSMS)>>右键单击SQL Server实例>属性>>高级>>最大并行度
Here, we can see that the default configuration of the SQL Server Degree of Parallelism value is 0.
在这里,我们可以看到“ SQL Server并行度”值的默认配置为0。
The user can change the Max Degree of Parallelism by SSMS in the SQL Server Advanced property.
用户可以在SQL Server Advanced属性中通过SSMS更改“最大并行度”。
最大并行度在SQL Server中如何工作? (How does Max Degree of Parallelism work in SQL Server?)
When SQL Server gets any request from the client application end, it compiles and prepares the quickest execution plan with the minimal cost of server assets. If query cost is high, then the reason should be either databa