I am trying to execute this query :
ALTER PROCEDURE [dbo].[SPViewMTO]
AS
BEGIN
SELECT *,isnull(dbo.ReturnShortageByItemCodeLinePackage(LineId,TestPackageId,MaterialDescriptionId),0) As Shortage
,isnull(dbo.WarehouseByMaterialdesciptionId(MaterialDescriptionId),0) As Warehouse
,isnull(dbo.ReturnTotalIMIVByLineIdAndTestPackIdAndMaterialDescriptionId(LineId,TestPackageId,MaterialDescriptionId),0) as totalIMIV
,isnull(dbo.ReturnTotalMIVByLineIdAndTestPackIdAndMaterialDescriptionId(LineId,TestPackageId,MaterialDescriptionId),0) as TotalMIV
,isnull(dbo.ReturnTotalMRCByLineIdAndTestPackIdAndMaterialDesriptionId(LineId,TestPackageId,MaterialDescriptionId),0) as TotalMRC
from dbo.ViewMTO
END
I run this query on this computer :
with 2:13
execution time ,it is a little slow :
So our company decieded to buy a proliant dl380 hp gen 9
with this config
And i run the query again and i hope to my query execute more faster :
but the execution time is 4:10.Why?!!! Another thing that i should add is the cpu usage in my local pc is :