标签: sql sql-server
我试图找出是否有人可以解释大型数据集上以下查询的不良性能,以及如何改善性能。
SELECT * FROM Contract_Position Cpos LEFT OUTER JOIN Contract_Agreement Cagg ON Cpos.Contract_ID = Cagg.Contract_ID OR (Cpos.Contract_ID IS NULL AND Cagg.Contract_ID IS NULL)