Hi All,
I have 2 tables.
Parts and Part_Property
Parts
Part IDStatus
1Complete
2Pending
3Complete
Part Property
Part IDStatusPart TypePart String
1Complete ActiveTrue
1Complete Data_StatusRaw
1Complete Temp_VerificationValid_Test
1Complete NameScrew
2Complete ActiveFalse
2Complete Data_StatusRaw
2Complete Temp_VerificationValid_Test
2Complete NameHooks
3Complete ActiveTrue
3Complete Data_StatusRaw
3Complete Temp_VerificationValid_Test
3Complete NameBolt
The above rows are small set of data. Our Previous code with Left Outer Join, has huge Scan Count > 15000 and Logical Reads > 40000. And the users complain that it is very slow always.
SQL Server Execution Times:CPU time = 313 ms, elapsed time = 318 ms.
SQL Server parse and compile time:
CPU time = 0 ms, elapsed time = 0 ms.
Is there any way to overcome these performance bottleneck ?