This is very simple and known tip. Query Hint MAXDOP – Maximum Degree Of Parallelism can be set to restrict query to run on a certain CPU. Please note that this query cannot restrict or dictate which CPU to be used, but for sure, it restricts the usage of number of CPUs in a single batch. Let us consider the following example of this query.The following query usually runs on multicore on a dual core machine (please note it may not be the case with your machine).USE AdventureWorks
GO
SELECT *
FROM Sales.SalesOrderDetail
ORDER BY ProductID
GORead more: Journey to SQL Authority with Pinal Dave
GO
SELECT *
FROM Sales.SalesOrderDetail
ORDER BY ProductID
GORead more: Journey to SQL Authority with Pinal Dave
0 comments:
Post a Comment