SQL Server grafik yürütme planları sağdan sola ve yukarıdan aşağıya okunur. Ürettiği çıktı için anlamlı bir düzen var mı SET STATISTICS IO ON
?
Aşağıdaki sorgu:
SET STATISTICS IO ON;
SELECT *
FROM Sales.SalesOrderHeader AS soh
JOIN Sales.SalesOrderDetail AS sod ON soh.SalesOrderID = sod.SalesOrderID
JOIN Production.Product AS p ON sod.ProductID = p.ProductID;
Bu planı oluşturur:
Ve bu STATISTICS IO
çıktı:
Table 'Worktable'. Scan count 0, logical reads 0, physical reads 0, read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0.
Table 'SalesOrderDetail'. Scan count 1, logical reads 1246, physical reads 3, read-ahead reads 1277, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0.
Table 'SalesOrderHeader'. Scan count 1, logical reads 689, physical reads 1, read-ahead reads 685, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0.
Table 'Product'. Scan count 1, logical reads 15, physical reads 1, read-ahead reads 14, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0.
Tekrar ediyorum: ne veriyor? STATISTICS IO
Çıktı için anlamlı bir emir var mı veya bazı keyfi emir kullanılıyor mu?